Method | Description | |
---|---|---|
AddConverter ( |
||
AddSetting ( string name, object val, string desc, string category, ValueChangedDelegate eh, bool reflect, object refObj ) : void |
adds a setting to this settings object
|
|
GetSetting ( string key, object defaultvalue ) : |
Gets the Setting object tied to the string. If there is no Setting object, one will be created with the defaultValue
|
|
ReadSettings ( |
||
Save ( string name, System sw ) : void | ||
Settings ( ) : System | ||
this ( string key ) : |
Get/Set the Setting object tied to the input string
|
Method | Description | |
---|---|---|
convert ( object o ) : string | ||
convertColor ( object o ) : string | ||
reflectEvent ( object sender, string key, object val ) : void |
public static AddConverter ( |
||
t | ||
o | ConvertObject | |
return | void |
public AddSetting ( string name, object val, string desc, string category, ValueChangedDelegate eh, bool reflect, object refObj ) : void | ||
name | string | property name |
val | object | start value of the property |
desc | string | property description |
category | string | property category |
eh | ValueChangedDelegate | event handler to recieve the PropertyValueChanged event |
reflect | bool | if true, an internal event handler will be created - the refObj must not be null and the name must be the name of a property of the type that refObj is |
refObj | object | the object that will recieve the changed property values |
return | void |
public GetSetting ( string key, object defaultvalue ) : |
||
key | string | The name of the setting object |
defaultvalue | object | if there is no Setting object tied to the string, a Setting will be created with this as its Value |
return |
public static ReadSettings ( |
||
vc | ||
kv | ||
currSettings | ||
return | void |
public Save ( string name, System sw ) : void | ||
name | string | |
sw | System | |
return | void |