Questions tagged as 'c#'

2
answers

Construction of timer

I am building a timer using WPF . When I ran some tests, I noticed that the timestamp in WPF lags behind the timer of my iPhone . The difference starts appearing after 8 seconds after the start of the timing. Below I've made available the...
asked by 17.11.2017 / 22:46
1
answer

What is the purpose of the "[Bind (" ID, Title, ReleaseDate, Genre, Price ")]" in a method?

I'm creating a project in ASP.NET Core MVC for learning purposes. In a given part of the Microsoft guide when the scaffold technique is approached to generate the controller and views controller , I came across an instruction in some meth...
asked by 13.11.2017 / 01:44
1
answer

Page Content does not appear in Xamarin Forms

I'm having trouble showing the content of the pages. I created a ListView with some options, follow the code below: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamar...
asked by 28.08.2017 / 20:42
3
answers

How to send selected data to an ftp server

I am developing a project in C # and at this point I have to select a row from a DataGridView that I created, create a text file with that data and send the file created to an ftp server. I already did a search, but I could not find anything tha...
asked by 24.08.2017 / 16:40
1
answer

Show / Hide the console in an application in C #

I searched on how to show / hide the console in an application in C # in the forums in Portuguese and did not find it. Looking for internationals I came across several solutions but found a very easy application and would like to share with othe...
asked by 20.03.2017 / 20:51
1
answer

How to pass more than one parameter to a Controller?

I'm needing support to pass more than one parameter to a Creation Controller. I have some models as below: Usuario : Brings the information of the user who opened the ex call. user_id, user_name Chamado : Brings the title, co...
asked by 19.03.2017 / 22:24
1
answer

How to detect network instability with C #

I have a WinForms system where the folders that this system generates and uses is on a server, but there are some routines of this system that are creating multiple PDF's on the server, and when there is any instability in the network it does no...
asked by 29.03.2017 / 14:54
1
answer

Entity - Multiplicity constraint violated

I'm not understanding the reason for this error in Entity. Could you give me a help?    Error: The role 'OccurrenceHistorical_Target_Operation' of the relationship 'MoradaWeb.Models.Historical_Operation' has multiplicity 1 or 0..1. Mode...
asked by 29.03.2017 / 19:50
1
answer

How to know the link of the call View () .NET MVC

I have a controller with a view at the end to show details of a company. I am making a code that allows you to generate a url for the company details through goo.gl to make it easier and more enjoyable to share, and I need to put as a para...
asked by 23.02.2017 / 19:06
2
answers

Operator "!=" does not work in my code?

I have a part of my program that does several checks when the button is clicked and one of these checks is: it takes the value entered in textboxRankTecnica and has to buy with the array ranksAceitaveis . If it enters a value tha...
asked by 26.02.2017 / 00:20