In a winform application by C# and .Net 4, I look for to have multiple presets for my settings.
As it is shown in the following picture, in the settings form of my application, I like to have a list of presets so that when user select each of them, some initial values are loaded.
The user, then, can change each of them, and changes must be saved to the selected preset.
When I had single preset, I used Properties.Settings.Default.*
to bind the controls of the settings form to the application settings. But now I don't know how to use multiple settings files and load and save each of them for each preset.
I look for the easiest way to accomplish it.
Aucun commentaire:
Enregistrer un commentaire