C# Class CloudFlareDDNS.SettingsManager

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

Class constructor
public SettingsManager ( ) : System
Résultat System

getSetting() public méthode

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

loadSettings() public méthode

Load application settings from file
public loadSettings ( ) : void
Résultat void

saveSettings() public méthode

Save application settings to file
public saveSettings ( ) : void
Résultat void

setSetting() public méthode

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