Questions tagged as 'c#'

1
answer

Access SelectedItem from Combobox Windows Forms C #

I placed the items inside the combobox as follows: cmbSituacao.DisplayMember = "Text"; cmbSituacao.ValueMember = "Value"; cmbSituacao.Items.Add(new {Text = "TODOS", Value = "000000"}); foreach(var sit in recSituacao) { cmbSituacao.Items.Add...
asked by 19.07.2018 / 16:36
0
answers

Creating FK's with EntityFramework + Fluent-API - ASP.NET MVC

I have some questions about creating FKs with the Fluent API    For example: I have the class Cliente and Endereco , and the client can have more than 1 address, but the address can only belong to 1 client, so I would like to cre...
asked by 19.07.2018 / 15:36
1
answer

Importing an XML and using columns to make calculations

I need a help, I'm importing NFE xml, and I'm using the QTDA field to make a calculation, except that the quantity field in xml is composed in this way, 360.0000 and when I import that field, it is 3600000 because I am turning to decimal in the...
asked by 19.07.2018 / 17:49
1
answer

Clear DataGridView without triggering CellValidating event

I'm trying to clean a DataGridView from C #. But when running Rows.Clear() , before that it is executing a CellValidating event that is also appended to the DataGridView How can I not perform validation before clearing the record...
asked by 27.07.2018 / 16:04
2
answers

Read specific XML tags?

I need to read tags specific to this file XML : <?xml version="1.0" encoding="UTF-8"?> <EnviarLoteRpsEnvio xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns...
asked by 14.03.2017 / 21:13
0
answers

How to compare arrays and datagridview through loops?

Good afternoon guys I have 7 textboxes that I did this way long[] Jornada; Jornada = new long[7]; Jornada[0] = TimeSpan.Parse(textboxjornadaseg.Text.ToString()).Ticks; Jornada[1]= TimeSpan.Parse(textboxjornadater.Text...
asked by 27.07.2018 / 18:12
1
answer

View PDF document using printdocument

I am making a direct print to the printer using printdocument, now I need to use this document to generate a pdf, and visualize using the pdf of Windows, how do I pass my code to pdf. follows the code that generates print with printdocumet...
asked by 04.08.2018 / 02:54
2
answers

For better performance in the PostgreSQL database is it better to have the products split into smaller tables?

Hello, I am developing a system to manage the sale of various real estate developments. In this system each venture has a group of units available, type "Apt 21 - 2nd Floor, Apt 34 - 3rd Floor" etc.    I need performance for the broker to acc...
asked by 16.07.2018 / 20:14
0
answers

postasync submitting content null

I'm in a Xamarin project where I use a web service in PHP. The problem is as follows, I send json to ws but when I receive it by POST, nothing arrives on it C # code: HttpContent content = new StringContent(json, Encoding.UTF8...
asked by 18.07.2018 / 20:20
1
answer

How to show Controller result in View c #

I would like to show my result that is in the controller method in View. EX: Controller: public class SMSTarifado { public int QtdTarifados { get; set; } public int QtdEnviados { get; set; } public int QtdRespondidos { get; set;...
asked by 23.07.2018 / 20:57