C# Class XCore.PersistenceProvider

A PersistenceProvider which uses the XCore PropertyTable
Inheritance: IPersistenceProvider
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Property Type Description
m_contextString string
m_propertyTable PropertyTable

Public Methods

Method Description
GetInfoObject ( string id, Object defaultValue ) : Object
PersistWindowSettings ( string id, Form form ) : void
PersistenceProvider ( PropertyTable propertyTable ) : System

create a PersistenceProvider which uses the XCore PropertyTable.

PersistenceProvider ( string context, PropertyTable propertyTable ) : System

create a PersistenceProvider which uses the XCore PropertyTable.

RestoreWindowSettings ( string id, Form form ) : void
SetInfoObject ( string id, Object info ) : void

Protected Methods

Method Description
Get ( string id, string label ) : object
GetPrefix ( string id ) : string
Set ( string id, string label, object value ) : void

Method Details

Get() protected method

protected Get ( string id, string label ) : object
id string
label string
return object

GetInfoObject() public method

public GetInfoObject ( string id, Object defaultValue ) : Object
id string
defaultValue Object
return Object

GetPrefix() protected method

protected GetPrefix ( string id ) : string
id string
return string

PersistWindowSettings() public method

public PersistWindowSettings ( string id, Form form ) : void
id string
form Form
return void

PersistenceProvider() public method

create a PersistenceProvider which uses the XCore PropertyTable.
public PersistenceProvider ( PropertyTable propertyTable ) : System
propertyTable PropertyTable
return System

PersistenceProvider() public method

create a PersistenceProvider which uses the XCore PropertyTable.
public PersistenceProvider ( string context, PropertyTable propertyTable ) : System
context string used to provide persistence and access to settings /// limited to a particular context. For example, if they control is used in /// three different places, we don't necessarily want to control to use the /// same settings each time. So each case would need its own context string.
propertyTable PropertyTable
return System

RestoreWindowSettings() public method

public RestoreWindowSettings ( string id, Form form ) : void
id string
form Form
return void

Set() protected method

protected Set ( string id, string label, object value ) : void
id string
label string
value object
return void

SetInfoObject() public method

public SetInfoObject ( string id, Object info ) : void
id string
info Object
return void

Property Details

m_contextString protected_oe property

protected string m_contextString
return string

m_propertyTable protected_oe property

protected PropertyTable,XCore m_propertyTable
return PropertyTable