C# Class MissionPlanner.Utilities.Settings

This class loads and saves some handy app level settings so UI state is preserved across sessions.
ファイルを表示 Open project: ArduPilot/MissionPlanner Class Usage Examples

Public Properties

Property Type Description
config string>.Dictionary

Public Methods

Method Description
ContainsKey ( string key ) : bool
GetBoolean ( string key ) : bool
GetByte ( string key ) : byte
GetDataDirectory ( ) : string

Shared data directory

GetDefaultLogDir ( ) : string
GetDisplayView ( string key ) : DisplayView
GetDouble ( string key ) : double
GetFloat ( string key ) : float
GetInt32 ( string key ) : int
GetRunningDirectory ( ) : string

Install directory path

GetUserDataDirectory ( ) : string

User specific data

Load ( ) : void
Remove ( string key ) : void
Save ( ) : void
Settings ( ) : log4net
this ( string key ) : string

Private Methods

Method Description
GetConfigFullPath ( ) : string

full path to the config file

Method Details

ContainsKey() public method

public ContainsKey ( string key ) : bool
key string
return bool

GetBoolean() public method

public GetBoolean ( string key ) : bool
key string
return bool

GetByte() public method

public GetByte ( string key ) : byte
key string
return byte

GetDataDirectory() public static method

Shared data directory
public static GetDataDirectory ( ) : string
return string

GetDefaultLogDir() public static method

public static GetDefaultLogDir ( ) : string
return string

GetDisplayView() public method

public GetDisplayView ( string key ) : DisplayView
key string
return DisplayView

GetDouble() public method

public GetDouble ( string key ) : double
key string
return double

GetFloat() public method

public GetFloat ( string key ) : float
key string
return float

GetInt32() public method

public GetInt32 ( string key ) : int
key string
return int

GetRunningDirectory() public static method

Install directory path
public static GetRunningDirectory ( ) : string
return string

GetUserDataDirectory() public static method

User specific data
public static GetUserDataDirectory ( ) : string
return string

Load() public method

public Load ( ) : void
return void

Remove() public method

public Remove ( string key ) : void
key string
return void

Save() public method

public Save ( ) : void
return void

Settings() public method

public Settings ( ) : log4net
return log4net

this() public method

public this ( string key ) : string
key string
return string

Property Details

config public_oe static_oe property

use to store all internal config
public static Dictionary config
return string>.Dictionary