Settings
save user preferences to an application's color scheme for example and Resource
is for the same thing?
When should I use Settings
and when should I use Resource
in the Winforms application?
Settings
save user preferences to an application's color scheme for example and Resource
is for the same thing?
When should I use Settings
and when should I use Resource
in the Winforms application?
The big difference is that by using Resource
after changing some value, adding or removing a key, you need to recompile the application. So Resources
should be used for more "static" content such as texts, labels and other items presented in the UI, especially when there are variations of culture (different languages). That is, it should be used for the presentation of resources related to the core of your application.
Already using Settings
you have greater flexibility for settings for a distribution for more dynamic customizations to user preferences or what you plan to change for a particular customer without relying on a redistribution of your application. Here are other system variables, such as connection strings, directory mapping, and so on.
In your case, if the goal is to allow the user to choose a predefined core palette, these themes can be in Resource
and you save in Settings
which theme was chosen.