Settings files are designed to make our life simpler during working with application and user configuration.
A bit theory
Settings file consists of few parts in our project.
- Settings file (auto generated class derived from ApplicationSettingsBase).
- app.config (contains default values for all options).
All settings have next properties:
- Name (this is the name of our setting): with this name we will have automatically generated property in Settings class.
- Type (the type of our setting): there are a lot of predefined types like string, int, etc., but you can also set your custom type.
- Value (this is default value for setting).
- Scope: all settings should be in one of two scopes (User or Application). It represents how our setting will be accessed at runtime.