Questions tagged as 'c#'

1
answer

Doubt about implementing a Dependency Injection in C # using Ninject

I have a C # project with Windows Forms. I have a question about how to do an implementation between two layers of my application: Application and WindowsForms . I need to load a DataGridView with a list of "PessoaTip...
asked by 14.02.2017 / 23:31
1
answer

Create Json with a lot of Data and Return with WebApi

Scenario: I have a WebApi that runs a method on my service layer that executes a query either returns 500k result lines, containing 90 columns. Method that queries and traverses results: using (var command = Session.Connection.CreateCo...
asked by 13.02.2017 / 20:25
1
answer

How to convert string to FileImageSource (Icon) Xamarin Forms

How to convert a string (Image) to FileImageSource (Icon)? I need to display a photo in ToolbarItems in the right corner of the hamburger menu. I tried it that way, but it did not work. My code: FileImageSource IconF...
asked by 06.12.2016 / 14:52
1
answer

How to load a PartialView to create a comment

I'm working on a project to learn ASP.NET MVC and Razor. I currently have a post template with a view , and a view associated with the model class comment to create a new comment. I would like to know how to do to put the view comm...
asked by 14.12.2016 / 20:53
1
answer

Pass ID to Controller

I have the problem that when I click the Register button, the City does not pass the ID. Made. The ID is being passed to the screen, but at the time of passing to the controller not. <div class="alinhado col-md-4"> <div class="for...
asked by 15.12.2016 / 20:40
1
answer

Automapper with IoC

public class Vigencia { public DateTime DataInicialVigencia { get; set; } public DateTime DataFinalVigencia { get; set; } public Guid VeiculoId { get; set; } public Guid RastreadorId { get; set; } } public class Veiculo { pub...
asked by 20.12.2016 / 09:55
1
answer

Populate graph with mysql data

I am developing a C # application and need to fill in a graph with the amount of data registered in 3 MySql tables. It is as follows: The graph should inform the user in different columns how much data are registered in the product tables, logse...
asked by 20.12.2016 / 15:00
1
answer

How to make the compiler recognize the. as decimal separator?

I made a simple C # code that gets a real number but only recognizes the "," as the decimal separator. When I do receive numbers that use the "." as a separator it ignores the point. For example, if you send "2.0", it receives "20". Here is the...
asked by 12.12.2016 / 04:00
1
answer

TXT file manipulation in C #

I'm working on a project where I need to perform User Registration and Control from an initial user (administrator). In my file I have the following line containing all the user information and in the code of the program, I assign them in a stru...
asked by 13.12.2016 / 01:07
1
answer

Uploading images with c # windows forms and php

I've been trying to find a solution to my problem for at least two weeks and I can not seem to make it work. The idea is this: I have an application Windows Forms written in C# , in which I will have a OpenFileDialog that wil...
asked by 02.02.2017 / 00:01