C# Class ImageGlass.Services.Configuration.GlobalSetting

显示文件 Open project: d2phap/ImageGlass Class Usage Examples

Public Methods

Method Description
GetConfig ( string key ) : string

Gets a specify config. Return "" if not found.

GetConfig ( string key, string defaultValue ) : string

Gets a specify config. Return @defaultValue if not found.

LoadImageOrderConfig ( ) : void

Load image order from configuration file

RectToString ( Rectangle rc ) : string

Convert Rectangle to String

SetConfig ( string key, string value ) : void

Sets a specify config.

StringToRect ( string str ) : Rectangle

Convert String to Rectangle

Method Details

GetConfig() public static method

Gets a specify config. Return "" if not found.
public static GetConfig ( string key ) : string
key string Configuration key
return string

GetConfig() public static method

Gets a specify config. Return @defaultValue if not found.
public static GetConfig ( string key, string defaultValue ) : string
key string Configuration key
defaultValue string Default value
return string

LoadImageOrderConfig() public static method

Load image order from configuration file
public static LoadImageOrderConfig ( ) : void
return void

RectToString() public static method

Convert Rectangle to String
public static RectToString ( Rectangle rc ) : string
rc System.Drawing.Rectangle
return string

SetConfig() public static method

Sets a specify config.
public static SetConfig ( string key, string value ) : void
key string Configuration key
value string Configuration value
return void

StringToRect() public static method

Convert String to Rectangle
public static StringToRect ( string str ) : Rectangle
str string
return System.Drawing.Rectangle