Demo2 - Different storages
Aim of demo:
This demo shows how easy it is to :
use different storage types.
change storage even at runtime.
What it does:
In the "Storage options" box you can select what storage to save the settings from. In this application, a new storage object is created by the CreateStorage method each time you access a storage. (This might be wasteful, but serves its purpose for this demo.)
How it's done:
The application does not care what type of storage it is using, as long as it is using a storage object that implements ISettingsStorage.
Extra:
- Also, in the "Storage options" box you can select whether enumerations should be stored in integer or string format.
NOTE: When an enumerated setting has been saved as text it cannot be read as an integer, and vice versa.
- After each click on "Save all", take a look at the newly saved settings.
- XML and .ini files are stored in the same folder as Demo2.exe.
- Registry settings are saved in HKEY_LOCAL_MACHINE\SOFTWARE\PtSettings\Demo2.