C# Class csShared.Config

Inheritance: Caliburn.Micro.PropertyChangedBase
ファイルを表示 Open project: TNOCS/csTouch Class Usage Examples

Public Properties

Property Type Description
OnlineValues string>.Dictionary
localValues string>.Dictionary

Public Methods

Method Description
DecryptString ( string message, string passphrase ) : string
EncryptString ( string message, string passphrase ) : string
Get ( string key, string @default ) : string
Get ( string key, string @default, bool storeOffline ) : string
GetBool ( string key, bool @default ) : bool
GetBrush ( string key, System.Windows.Media.Brush @default ) : System.Windows.Media.Brush
GetDouble ( string key, double @default ) : double
GetInt ( string key, int @default ) : int
GetTagIds ( ) : string>>.IEnumerable
LoadConfig ( bool encrypted, string file ) : string
LoadLocalConfig ( ) : void
LoadOfflineConfig ( ) : void
SaveConfig ( string file, string data, bool encrypt ) : void
Set ( string key, string newValue ) : void
SetBool ( string key, bool newValue ) : void
SetLocalConfig ( string name, string value ) : void
SetLocalConfig ( string name, string value, bool save ) : void
UpdateValues ( ) : void

Private Methods

Method Description
ApplyExcelConfigSheet ( ) : void
LogOff ( ) : void
OverrideVariablesFromExcelSheet ( FileInfo pConfigFile, string pConfigName ) : void
ParseValues ( string e ) : string>.Dictionary
SaveLocalConfig ( ) : void

Method Details

DecryptString() public static method

public static DecryptString ( string message, string passphrase ) : string
message string
passphrase string
return string

EncryptString() public static method

public static EncryptString ( string message, string passphrase ) : string
message string
passphrase string
return string

Get() public method

public Get ( string key, string @default ) : string
key string
@default string
return string

Get() public method

public Get ( string key, string @default, bool storeOffline ) : string
key string
@default string
storeOffline bool
return string

GetBool() public method

public GetBool ( string key, bool @default ) : bool
key string
@default bool
return bool

GetBrush() public method

public GetBrush ( string key, System.Windows.Media.Brush @default ) : System.Windows.Media.Brush
key string
@default System.Windows.Media.Brush
return System.Windows.Media.Brush

GetDouble() public method

public GetDouble ( string key, double @default ) : double
key string
@default double
return double

GetInt() public method

public GetInt ( string key, int @default ) : int
key string
@default int
return int

GetTagIds() public method

public GetTagIds ( ) : string>>.IEnumerable
return string>>.IEnumerable

LoadConfig() public static method

public static LoadConfig ( bool encrypted, string file ) : string
encrypted bool
file string
return string

LoadLocalConfig() public method

public LoadLocalConfig ( ) : void
return void

LoadOfflineConfig() public method

public LoadOfflineConfig ( ) : void
return void

SaveConfig() public static method

public static SaveConfig ( string file, string data, bool encrypt ) : void
file string
data string
encrypt bool
return void

Set() public method

public Set ( string key, string newValue ) : void
key string
newValue string
return void

SetBool() public method

public SetBool ( string key, bool newValue ) : void
key string
newValue bool
return void

SetLocalConfig() public method

public SetLocalConfig ( string name, string value ) : void
name string
value string
return void

SetLocalConfig() public method

public SetLocalConfig ( string name, string value, bool save ) : void
name string
value string
save bool
return void

UpdateValues() public method

public UpdateValues ( ) : void
return void

Property Details

OnlineValues public_oe property

public Dictionary OnlineValues
return string>.Dictionary

localValues public_oe property

public Dictionary localValues
return string>.Dictionary