C# Class CloudFlareDDNS.SettingsManager

Configuration file access wrapper
Show file Open project: DaniGTA/CloudFlare-DDNS-Updater Class Usage Examples

Public Methods

Method Description
SettingsManager ( ) : System

Class constructor

getSetting ( string szName ) : Setting

Get a setting from the config file by a given name

loadSettings ( ) : void

Load application settings from file

saveSettings ( ) : void

Save application settings to file

setSetting ( string szName, string szValue ) : void

Set a setting in the user config file

Private Methods

Method Description
createSettingsFile ( ) : void

Create the folder in %appdata%, and the config file

setDefaults ( ) : void

Load in some default settings for first launch

Method Details

SettingsManager() public method

Class constructor
public SettingsManager ( ) : System
return System

getSetting() public method

Get a setting from the config file by a given name
public getSetting ( string szName ) : Setting
szName string
return Setting

loadSettings() public method

Load application settings from file
public loadSettings ( ) : void
return void

saveSettings() public method

Save application settings to file
public saveSettings ( ) : void
return void

setSetting() public method

Set a setting in the user config file
public setSetting ( string szName, string szValue ) : void
szName string
szValue string
return void