C# Class MissionPlanner.Utilities.Settings

This class loads and saves some handy app level settings so UI state is preserved across sessions.
Afficher le fichier Open project: ArduPilot/MissionPlanner Class Usage Examples

Méthodes publiques

Свойство Type Description
config string>.Dictionary

Méthodes publiques

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

Méthode Description
GetConfigFullPath ( ) : string

full path to the config file

Method Details

ContainsKey() public méthode

public ContainsKey ( string key ) : bool
key string
Résultat bool

GetBoolean() public méthode

public GetBoolean ( string key ) : bool
key string
Résultat bool

GetByte() public méthode

public GetByte ( string key ) : byte
key string
Résultat byte

GetDataDirectory() public static méthode

Shared data directory
public static GetDataDirectory ( ) : string
Résultat string

GetDefaultLogDir() public static méthode

public static GetDefaultLogDir ( ) : string
Résultat string

GetDisplayView() public méthode

public GetDisplayView ( string key ) : DisplayView
key string
Résultat DisplayView

GetDouble() public méthode

public GetDouble ( string key ) : double
key string
Résultat double

GetFloat() public méthode

public GetFloat ( string key ) : float
key string
Résultat float

GetInt32() public méthode

public GetInt32 ( string key ) : int
key string
Résultat int

GetRunningDirectory() public static méthode

Install directory path
public static GetRunningDirectory ( ) : string
Résultat string

GetUserDataDirectory() public static méthode

User specific data
public static GetUserDataDirectory ( ) : string
Résultat string

Load() public méthode

public Load ( ) : void
Résultat void

Remove() public méthode

public Remove ( string key ) : void
key string
Résultat void

Save() public méthode

public Save ( ) : void
Résultat void

Settings() public méthode

public Settings ( ) : log4net
Résultat log4net

this() public méthode

public this ( string key ) : string
key string
Résultat string

Property Details

config public_oe static_oe property

use to store all internal config
public static Dictionary config
Résultat string>.Dictionary