Questions tagged as 'c#'

1
answer

Put / get name of an ITEM in listView WPF

I have created a listView that by default shows 6 elements with a field Nombre and another Def in this way: listView.Items.Add(new grafica(){Nombre = "Seno de x", Def = "a * sen(b*x)" }); listView.Items.Add(new gr...
asked by 23.10.2018 / 10:17
0
answers

Verify the connection of a selenium

I have an application in selenium of c # but during the execution it can happen that it is without internet connection. so I did it this way: try{ driver2.Navigate().Refresh(); }catch(Exception ex){ Console.WriteLine(ex.Message); }...
asked by 23.10.2018 / 20:51
2
answers

Save image temporarily loaded with "AsyncFileUpload"

I have the following to show an image when loading it with the AsyncFileUpload, the problem that I have is that it saves the image in the route that I put it, but I would like that route to be temporary because to save it I want to occupy the bu...
asked by 23.10.2018 / 18:36
0
answers

Variable required in Rest

I want to make a request with [post] and if any field is null I do not want to continue the service. I want to stop the flow in the controller, The problem arises in the modelstate.isvalid returns true when it should return false. this is the...
asked by 22.10.2018 / 12:04
0
answers

how to consume web api by mvc in a synchronic way?

I need to consume a web api through an mvc project synchronously, however most of the examples are asynchronous, I have the following code: [HttpGet] public async Task<ActionResult> Buscar(int? id) { //Get...
asked by 24.10.2018 / 19:20
0
answers

Create resource for an image + tooltip that you will use many times in the graphical environment

I have the following code; <Image Source="C:\Users\Casa PC\Documents\Visual Studio 2017\Projects\PcS7\PcS7\Icons\info.png" Height="22" Margin="0,0,0,2"> <Image.ToolTip>...
asked by 21.10.2018 / 13:29
0
answers

How can I add 2 object type lists? C #

I have a question about the sum of values in 2 lists, as follows list1: (taking into account that the values are "name", "type", "quantity") {a, b, 23} {c, d, 2} {e, f, 5} {g, h, 10} list2: (taking into account that the values are "name",...
asked by 21.10.2018 / 16:35
0
answers

How to use the OnPropertyChange in C #? [UWP]

What happens is that I have this property: [Display(Name = "Codigo EAN-UCC", Description = "Codigo EAN-UCC para recaudos por codigo de barras", GroupName = "Tesoreria")] public string TESORERIA_CODEANUCC { get { return (Get() == null ? "" : (s...
asked by 22.10.2018 / 15:03
0
answers

UNITY An object reference is required to access non-static member 'Outline.OutlineMode'

I'm trying in Unity to get an object to have a border of a color when you approach it. For this I downloaded the asset "Quick Outline" and I am using your code. It works but I want that when it is already On it stops activating, the problem is t...
asked by 21.10.2018 / 15:45
1
answer

How can I inherit a variable that gets data with a SQLServer query?

I would like to know how to inherit a variable that contains the ID of a user obtained with the login to make an insertion to the BD with the id of the user that is logged in. I have tried it in many ways but I have not solved my inheritance...
asked by 19.10.2018 / 16:03