Questions tagged as 'c#'

1
answer

How to convert SQL command to LINQ?

I have two classes: Produção { int id, procedimento int, quant int string competencia } bpi { int id, ini idProducao } How to convert the code below to LINQ ? select ((sum(procedimento) + sum(quant)) mod 1111) + 1111 from producao...
asked by 12.03.2017 / 20:53
2
answers

Error 1 The type or namespace name 'DataReader' could not be found (are you missing a directive or an assembly reference?)

Good afternoon, I was performing a code to query my database when I encountered these errors: Error 1 The type or namespace name 'DataReader' could not be found (are you missing a directive or an assembly reference?) I know it's something sim...
asked by 07.04.2017 / 18:52
2
answers

How to get value from the serial port?

With the code below I get four values ( 1,2,3,4 ) sent by the Arduino serial port / strong>, 3 or 4 values are not sent together, either 1 or 2 / p> serialPort1.Open(); string entrada = serialPort1.ReadLine(); txtIDTag.Text = entrada...
asked by 09.04.2017 / 23:00
2
answers

How to retrieve the connection string from App.config from another project?

I have these connection strings in App.config from another project : <connectionStrings> <add name="ConexaoTeste1" connectionString="RGF0YSBTb3VyY2U9JCQkXFNRTEVYUFJFU1M7SW5pdGlhbCBDYXRhbG9nPXRlc3RlOw==" providerNa...
asked by 23.03.2017 / 13:00
1
answer

How to do a data binding in a ListView in Xamarin.Android?

I'm trying to make a listview fill with the data in a table, but so far I do not understand how to do the data binding on it. XML; <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/a...
asked by 22.03.2017 / 21:10
1
answer

How to extract the information from the Itau return file in C #?

I'm developing an application in which the BoletoNet library is being used to generate tickets. In this case the library itself when generating the tickets also generates the shipping file that needs to be sent to the bank. On the other hand,...
asked by 10.03.2017 / 23:17
1
answer

Check value textbox x mysql (universal app win 10) [closed]

I have a textbox where I store a value. I would like to know if this value is the same as the last id in my mysql database table. How do I do this?     
asked by 11.03.2017 / 21:37
1
answer

DataTable with constructor methods of a class to make registrations

I'm trying to make a DataTable that saves data (I'm not using database) referring to the name and email of a client and displays in a DataGridView (display on the grid is not the problem, this I know do) the data that was typed in...
asked by 08.03.2017 / 17:20
1
answer

How to obtain data from Banco Mysql?

I have this code snippet where it takes the information from a database field and passes it to the textBlock, so now I need to populate some textblock.    EX: In the database has name = maria Rg = 123 cpf = 456 ai in the program vai   have th...
asked by 09.03.2017 / 13:10
1
answer

Apply force by clicking and dragging unity [closed]

Good morning, I'm a beginner in Unity so sorry if I talk nonsense haha I'm developing a game where I need to put a ball in a basket, what I'm not able to do is click and drag the ball to apply the force and nor change the intensity gives stre...
asked by 05.04.2017 / 15:35