C# Класс ApexLumia.SettingsItems

Наследование: INotifyPropertyChanged
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
OnPropertyChanged ( string propertyName ) : void

Описание методов

Load() публичный Метод

Gets the saved value from IsolatedStorage, or, if not available, sets the default value.
public Load ( ) : void
Результат void

Save() публичный Метод

Save the current value to IsolatedStorage, or if it doesn't exist yet, add it and save it.
public Save ( ) : void
Результат void

SettingsItems() публичный Метод

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.
Результат System

setDefault() публичный Метод

Set the current value to the default and save to IsolatedStorage.
public setDefault ( ) : void
Результат void