C# Class ApexLumia.SettingsItems

Inheritance: INotifyPropertyChanged
Datei anzeigen Open project: ApexHAB/apex-lumia

Public Methods

Method Description
Load ( ) : void

Gets the saved value from IsolatedStorage, or, if not available, sets the default value.

Save ( ) : void

Save the current value to IsolatedStorage, or if it doesn't exist yet, add it and save it.

SettingsItems ( string id, string name, object defaultvalue ) : System

Constructor: Grabs saved settings from Isolated Storage and loads the value of this new setting.

setDefault ( ) : void

Set the current value to the default and save to IsolatedStorage.

Private Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Method Details

Load() public method

Gets the saved value from IsolatedStorage, or, if not available, sets the default value.
public Load ( ) : void
return void

Save() public method

Save the current value to IsolatedStorage, or if it doesn't exist yet, add it and save it.
public Save ( ) : void
return void

SettingsItems() public method

Constructor: Grabs saved settings from Isolated Storage and loads the value of this new setting.
public SettingsItems ( string id, string name, object defaultvalue ) : System
id string Used as the key for saving the setting value in IsolatedStorage.
name string Readable name for display on the settings page
defaultvalue object The default value for the setting.
return System

setDefault() public method

Set the current value to the default and save to IsolatedStorage.
public setDefault ( ) : void
return void