Property | Type | Description | |
---|---|---|---|
OnLoadSettings | void | ||
OnMoveResize | void | ||
OnSaveSettings | void | ||
SaveWindowState | void |
Method | Description | |
---|---|---|
BeginInit ( ) : void |
Required to implement ISupportInitialize.
|
|
CheckDisposed ( ) : void |
Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
|
|
DeserializeFromBinary ( Stream stream ) : Object |
Deserializes an object from binary.
|
|
EndInit ( ) : void |
When all properties have been initialized, this will be called. This is where we can load the window state.
|
|
LoadWindowPosition ( ) : void |
Load the top, left, width, and height of the window from the registry, use default application parameters if not present in registry. This should be called from OnLayout; it takes effect in the first call AFTER EndInit.
|
|
Persistence ( ) : System |
Initializes a new instance of the
|
|
Persistence ( |
Initializes a new instance of the
|
|
Persistence ( System container ) : System |
Initializes a new instance of the
|
|
Persistence ( System container, |
Initializes a new instance of the
|
|
SaveSettingsNow ( |
Initiate saving all the settings for the specified control, and for all of the control's owned controls which implement ISettings. Note: A parent's ISettings::SaveSettingsNow should call this method (Persistence::SaveSettingsNow). |
|
SaveWindowPosition ( |
Save the top, left, width, and height of the window to the registry.
|
|
SerializeToBinary ( object obj ) : |
Serializes to binary an object.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the resources used by Persistence
|
Method | Description | |
---|---|---|
OnLoadSettings ( object obj, System e ) : void |
Tasks needing to be done when Window is being created: Load window position. Load settings.
|
|
OnMoveResize ( object sender, System e ) : void | ||
OnSaveSettings ( object obj, System e ) : void |
Tasks needing to be done when Window is being closed: Save window position. Save window state. Save settings.
|
|
SaveWindowState ( |
public static DeserializeFromBinary ( Stream stream ) : Object | ||
stream | Stream | The stream from which to deserialize |
return | Object |
public Persistence ( |
||
parent | ||
loadFunct | Settings | |
saveFunct | Settings | |
return | System |
public Persistence ( System container ) : System | ||
container | System | |
return | System |
public Persistence ( System container, |
||
container | System | |
parent | ||
return | System |
public SaveSettingsNow ( |
||
ctrl | Control or form whose settings should be saved. | |
return | void |
public SaveWindowPosition ( |
||
key | The Registry Key. | |
return | void |
public static SerializeToBinary ( object obj ) : |
||
obj | object | The object to be serialized. |
return |