C# Class Tibialyzer.SettingsManager

Exibir arquivo Open project: Mytherin/Tibialyzer Class Usage Examples

Public Properties

Property Type Description
settings List>.Dictionary

Public Methods

Method Description
ApplyDefaultSettings ( ) : void
CreateBackup ( ) : void
Initialize ( ) : void
LoadSettings ( string settingsFile ) : void
ResetSettingsToDefault ( ) : void
RestoreBackup ( ) : void
SaveSettings ( ) : void
getSetting ( string key ) : List
getSettingBool ( string key ) : bool
getSettingDouble ( string key ) : double
getSettingInt ( string key ) : int
getSettingString ( string key ) : string
removeSetting ( string key ) : void
setSetting ( string key, List value ) : void
setSetting ( string key, bool value ) : void
setSetting ( string key, double value ) : void
setSetting ( string key, int value ) : void
setSetting ( string key, string value ) : void
setSettingIfNotSet ( string key, List value ) : void
setSettingIfNotSet ( string key, bool value ) : void
setSettingIfNotSet ( string key, double value ) : void
setSettingIfNotSet ( string key, int value ) : void
setSettingIfNotSet ( string key, string value ) : void
settingExists ( string key ) : bool

Private Methods

Method Description
ActuallySaveSettings ( ) : void

Method Details

ApplyDefaultSettings() public static method

public static ApplyDefaultSettings ( ) : void
return void

CreateBackup() public static method

public static CreateBackup ( ) : void
return void

Initialize() public static method

public static Initialize ( ) : void
return void

LoadSettings() public static method

public static LoadSettings ( string settingsFile ) : void
settingsFile string
return void

ResetSettingsToDefault() public static method

public static ResetSettingsToDefault ( ) : void
return void

RestoreBackup() public static method

public static RestoreBackup ( ) : void
return void

SaveSettings() public static method

public static SaveSettings ( ) : void
return void

getSetting() public static method

public static getSetting ( string key ) : List
key string
return List

getSettingBool() public static method

public static getSettingBool ( string key ) : bool
key string
return bool

getSettingDouble() public static method

public static getSettingDouble ( string key ) : double
key string
return double

getSettingInt() public static method

public static getSettingInt ( string key ) : int
key string
return int

getSettingString() public static method

public static getSettingString ( string key ) : string
key string
return string

removeSetting() public static method

public static removeSetting ( string key ) : void
key string
return void

setSetting() public static method

public static setSetting ( string key, List value ) : void
key string
value List
return void

setSetting() public static method

public static setSetting ( string key, bool value ) : void
key string
value bool
return void

setSetting() public static method

public static setSetting ( string key, double value ) : void
key string
value double
return void

setSetting() public static method

public static setSetting ( string key, int value ) : void
key string
value int
return void

setSetting() public static method

public static setSetting ( string key, string value ) : void
key string
value string
return void

setSettingIfNotSet() public static method

public static setSettingIfNotSet ( string key, List value ) : void
key string
value List
return void

setSettingIfNotSet() public static method

public static setSettingIfNotSet ( string key, bool value ) : void
key string
value bool
return void

setSettingIfNotSet() public static method

public static setSettingIfNotSet ( string key, double value ) : void
key string
value double
return void

setSettingIfNotSet() public static method

public static setSettingIfNotSet ( string key, int value ) : void
key string
value int
return void

setSettingIfNotSet() public static method

public static setSettingIfNotSet ( string key, string value ) : void
key string
value string
return void

settingExists() public static method

public static settingExists ( string key ) : bool
key string
return bool

Property Details

settings public_oe static_oe property

public static Dictionary> settings
return List>.Dictionary