Questions tagged as 'c#'

1
answer

ASP .NET MVC - Use an @Html.DropDownList for two ActionResult

Hello, I'm developing an application with ASP .NET MVC and using the EPPlus API for XLS export. In the View of an equipment report I have two @Html.DropDownList with Equipment Type and Status respectively. To display the report...
asked by 19.10.2017 / 19:50
1
answer

api azure result different from the result of my location

I created a C # API in azure where it returns an array by passing the following faces: tccapiwebservice.azurewebsites.net/api/Algoritimos/PostAlgoritimo?_funcobjetiva=5,00;3,50&_maxmin=true&_restricoes=1,5;1.1;0.0;1&_sinalres=2;2;2...
asked by 20.10.2017 / 13:22
1
answer

Change sprite image when button is clicked on unity

I need a button to click on the image (a shrub) to change (for a cow in front of the shrub). public class mudaSprite : MonoBehaviour { public InputField dgt; public Text txt; public Sprite arbusto; SpriteRenderer spriteRenderer = GetComponent&...
asked by 06.11.2017 / 20:20
1
answer

Calculate ProgressBar Circular Time C # (Windows Forms)

I have the following ProgressBar circular, the idea is that it be decremented second by second, so far so good. However, I need the bar to start always full (circling 100%) and the value will be given by the user, so it can be 120 minutes, 90 mi...
asked by 04.11.2017 / 15:55
1
answer

Instantiate a class that inherits an interface class [closed]

I have a class that inherits many classes interfaces, and I want to instantiate it to use only one method, how should I do it? Is it possible to do it without passing all the necessary parameters? public class PontoSituacaoService : IPontoSitu...
asked by 10.10.2017 / 15:38
2
answers

How to do a mapping from an Excel column to a database column

I needed help to do the specific mapping of a column from an excel file to a column in a database. I can read the excel file but I just can not map the file to the column I want in the database. If you need any part of the code just ask like any...
asked by 10.10.2017 / 13:22
1
answer

How to do a deserialize on a Json with C-sharp

I have the following code private void WbRanking_DownloadDataCompleted(object sender, DownloadDataCompletedEventArgs e) { RunOnUiThread(() => { string json = Encoding.UTF8.GetString(e.Result);...
asked by 05.10.2017 / 19:11
1
answer

Error executing select with alias

When executing the query below using AT instead of "T" as a join alias, the following error is returned: "IErrorInfo.GetDescription failed with E_FAIL (0x80004005). " OleDbDataAdapter da = new OleDbDataAdapter("SELECT A.*, " +...
asked by 04.10.2017 / 23:08
1
answer

Data type mismatch in criteria expression + Excel data manipulation

Analyze to see if the logic is consistent, please. The procedure for this code is: Query a procedure and store its data in DataTable : private DataTable ExportPerformanceEntrega() { try { String...
asked by 05.10.2017 / 14:35
1
answer

reference error .net 4.6.1 for .netStandart 2.0

I have a problem when referencing a Standart2.0 project in my api .net Framework 461; The following happens I have the class: public class MeuReturn : IHttpActionResult { private readonly string _objeto; public MeuReturn(st...
asked by 26.10.2017 / 00:47