Application settings for visual studio

I am not sure how to use Application Setting with user types of users.

For example, in a time tracking system, I would like to have an application setup (with an application area) that indicates how many hours a day an employee should take into account. There is a custom TimeQuantity type with some factory methods and a constructor with a TimeQuantity signature (double, TimeSliceUnit), where the unit is just an enumeration.

I can force the parameter constructor to recognize the type of TimeQuantity, but I don’t understand how to specify the setting value (here is 8d hours).

Should I create any settings provider? Build an object outside the designer? Turn over my own settings infrastructure?

Cheers
Berryl

+4
source share
1 answer

I just struggled with the same problem. As far as I can tell, visual studio does not allow you to view the type of your current project; you can only view types in the referenced assembly. However, you can enter the full name of the type you want to use in the Select Type dialog box, as shown below. Please note that this will not work until your project is built with the type you want to include already included. (The same is true for reference assemblies.) Hope this helps!

enter image description here

+6
source

Source: https://habr.com/ru/post/1335708/


All Articles