C# Class Btl.Models.SettingsModel

A class that just encapsulates the application settings. This looks like a lot of replication, but it does always give us the option of switching out the settings backing store at a later date.
Inheritance: ISettingsModel
Mostra file Open project: barrylapthorn/countdown_timer

Public Methods

Method Description
Reload ( ) : void

Reload the settings from the application properties if necessary.

Save ( ) : void

Save the settings if they have been modified, otherwise do nothing.

SettingsModel ( ) : System

default constructor.

Private Methods

Method Description
LoadSettings ( ) : void

Load the application settings into the class.

SaveSettings ( ) : void

Actually update and save/persist the application settings.

UpgradeSettings ( ) : void

Method Details

Reload() public method

Reload the settings from the application properties if necessary.
public Reload ( ) : void
return void

Save() public method

Save the settings if they have been modified, otherwise do nothing.
public Save ( ) : void
return void

SettingsModel() public method

default constructor.
public SettingsModel ( ) : System
return System