Questions tagged as 'c#'

1
answer

How to put image and text in the same cell as the DataGridView

How to put image and text in the same cell as DataGridView C #? I need the two to be displayed in the same cell.     
asked by 30.01.2015 / 21:23
2
answers

Store changed properties of a class

I need to have a list with (name and value) of the changed properties stored in the class itself. But I'm not sure what form I'm using is feasible. I have the Employee class below: public class Funcionario { public int IdFuncionario { g...
asked by 05.02.2015 / 14:16
1
answer

Unknown Supplier

I've finished an application on the C # Windows Forms platform and want to publish it to a site, but the application needs administrator permission to connect to the server and download to a Windows folder. So I exported my security certificate,...
asked by 01.02.2015 / 18:05
1
answer

Create a method to get records by id

In my CRUD I want to create a method obterPorId(Cliente cli) I want to get the records by code, or by name, or another field. How would you get the DataReader? a correct way, using a method that returns a client, eg: public Client...
asked by 01.02.2015 / 05:54
1
answer

Error changing with message Object reference not set to an instance of an object

Personal I have the following problem. I created a class for DTO like this: public class PessoaFuncionario { public Pessoa Pessoa { get; set; } public string Nome { get; set; } public string CPF { get; set; } public string C...
asked by 18.05.2015 / 19:14
1
answer

How to list all files from a server directory in ASP.NET MVC?

I want to know how to create a List<string> with the names of files in a given directory. The service is hosted on a shared server, published in my httpdocs . I have several images within httpdocs/img/imagens ....
asked by 15.05.2015 / 04:32
2
answers

Delete a list of data in EF

I have a method that deletes a version of a file according to the last file version, 1 file can have many versions, and I wanted to delete all versions, I was able to delete only 1 version of a particular file. I want to delete all versions of a...
asked by 11.02.2015 / 13:56
1
answer

Get the user last login

In my project I came up with this business rule. I need to get the last time the user logged in. So it would be something to get the day and time of the last login. I already have the column created in the database named UltimoLogin...
asked by 11.02.2015 / 01:35
2
answers

LongListSelector on Windows Phone 8

I would like to make a screen with a LongListSelector this way, taking results from a webservice of mine and mounting in that style. How could I develop this? I am a layman in this part of XAML, is it possible to indicate the basic ste...
asked by 23.01.2015 / 18:12
1
answer

Autofac. Dispose or not Dispose that is the question

Is there a difference in performance or best practices between the two examples? Example1: private void Teste() { using (var scope = Container.BeginLifetimeScope()) { scope.Resolve<MyViewModel>().ShowName(); } }...
asked by 14.04.2015 / 02:46