Questions tagged as 'c#'

1
answer

How to use Curl with C #, application windows forms

I'm trying to integrate my desktop application with an online tool (ScrumWise), however they use Curl, I'm not able to consume the rest. curl https://api.scrumwise.com/service/api/v1/getData -k -u [email protected]:69C0A6A9E957B6398BD8C62F3B67...
asked by 19.05.2017 / 17:09
1
answer

What is the function of dragging the window to the corners of the screen?

How do you call the function of clicking and dragging the title bar of the window to the corners of the screen, and they adjust themselves? Example: when dragging the window in the right corner of the screen, it occupies 50% of the screen on...
asked by 25.02.2017 / 21:17
1
answer

WPF Xaml StringFormat

Good afternoon guys, I have a somewhat ridiculous problem, but I can not find the solution. I'm trying some stringFormat as StringFormat={}{0:#,#.00}} and StringFormat=N2} , in addition to StringFormat='c' , but taki...
asked by 22.11.2016 / 19:24
1
answer

How to upload and download the same request using AngularJS and Web api?

I'm developing a feature that will receive a spreadsheet in .xlsx format, perform a render and return that spreadsheet with the columns added, in which case I should upload a file and success would download it. In my attempts or I can send the f...
asked by 21.07.2016 / 15:00
1
answer

Is it a bad practice to leave an entire Cache Model in IIS?

In an application I use several times a code like var cliente = db.Clientes.Find(id); So I created a controller that returns me: [OutputCache(Duration = (10 * 60 * 60), VaryByParam = "id")] public static Cliente ClienteInfo(int id)...
asked by 18.07.2016 / 14:57
1
answer

Entity Framework: Data Model with column with the largest possible number of characters

I'm creating tables with Entity Framework , and I'm using Data Annotation to determine the amount of characters, I wanted to know what the largest size supported for typing text and if the correct type would be string same?...
asked by 18.01.2017 / 22:48
1
answer

ProgressBar WPF

Hello, I have seen several examples on the internet of progressBar in WPF, but none works. It appears more does not fill in the values, in fact it fills the values only after running the initial method where it is called. Source Code: p...
asked by 31.08.2017 / 19:57
2
answers

How to solve "Object reference not set to an instance of an object"?

namespace RepositorioLivrosICC { public class RepositorioLivros { public static RepositorioLivros instance = null; private List<Livro> repositorioLivros; private int indice; public static Reposi...
asked by 24.05.2016 / 05:06
1
answer

XAML with parameter - BackgroundWorker

I'm making a small XAML application that requests 2 dates. Dates are passed as a parameter to some methods invoked by the Button click event. The problem is that during the execution of the methods the form remains locked. How to use the Back...
asked by 19.02.2016 / 15:00
1
answer

Using Facebook Login on Windows Phone 8.1

I am developing a Windows Phone 8.1 application and it is necessary to use the Facebook login. Would anyone have an example of how to do this login? Thank you in advance.     
asked by 28.01.2016 / 20:14