Questions tagged as '.net'

2
answers

Create folder on every console usage

I got a program ready on the internet to create a folder, so I tried to adapt it for me but I can not do it. I would like every time I run it, create a subfolder inside the main with a different name, and let that name be the day I was using,...
asked by 19.09.2017 / 17:48
1
answer

Generic Class receiving a List?

In C # I have how to implement a generic class where 1 of the attributes received is a List object
asked by 18.09.2017 / 19:45
2
answers

How to Suggest name when saving report Crystal Report

Does anyone know how to suggest name when saving Crystal Report C # in the dialog box, windows form? The format I've been able to restrict ... like this: crystalRVEditoraNomeComeca.AllowedExportFormats = (int)(CrystalDecisions.Shared.ViewerExp...
asked by 11.09.2017 / 21:47
1
answer

How to represent the real type in C #?

I have an existing table in a database of my client and there has an attribute with data type REAL . How do I represent in C #? float or decimal ? What is the best way?     
asked by 20.08.2017 / 21:00
2
answers

Method To Receive Generic Values

Greetings. I have a method that gets 3 paraments: collection, business, quantity Collection: is a collection class that inherits from another class, eg, man, woman, senior ... Business: is a class that contains the methods that han...
asked by 09.05.2018 / 22:01
1
answer

Communication with Siemens CLP [closed]

Soon I will be developing an interface with Siemens CLP, model ET-200A. This is a new subject for me and I have some doubts. Has anyone ever dealt with this type of communication? Is the communication the same for any type of Siemens PLC?...
asked by 08.06.2017 / 19:22
1
answer

Windows service using async method, is there any need?

On my system, I have some auxiliary routines, which are triggered at set times, out of work. These routines are run by a Windows service program. Would you need to run these asynchronous services? That is, using methods async ? As...
asked by 22.07.2017 / 15:52
1
answer

The 'connection' object can be dropped more than once in the method

Follow the code: public ActionResult Index(ViewModel model, string returnUrl) { string query = "UPDATE Table SET Status = 'C' WHERE Id = @Num"; using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings...
asked by 07.05.2017 / 05:09
1
answer

How to add properties to WPF components?

I can use System.Windows.Controls.TextBox as an example. How do I add more behaviors and properties to it? In a real context, I would like the TextBox component to have a boolean property HasErrors , which if set to true,...
asked by 19.02.2017 / 16:48
1
answer

What is the purpose and use of the GuidAttribute?

I know the GUID is a 'unique' identifier, but I do not see the why of your application's attribute, as in the example below: [GuidAttribute("C281C7F1-4AA9-3517-961A-463CFED57E75")] [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]...
asked by 19.02.2017 / 13:45