C# Class MapView.x.RegistryInfo

a class to help facilitate the saving and loading of values into the registry
Exibir arquivo Open project: pmprog/OpenXCOM.Tools

Public Methods

Method Description
AddProperty ( ) : void

adds properties to be saved/loaded

AddProperty ( PropertyInfo property ) : void

adds a property to be saved/loaded

Closing ( object sender, CancelEventArgs e ) : void

Method intended for use with Form.Closing events - directly calls Save

Load ( object sender, EventArgs e ) : void

loads the specified values from the registry

RegistryInfo ( object obj, string name ) : System

Save ( object sender, EventArgs e ) : void

Saves the specified values into the registry

Method Details

AddProperty() public method

adds properties to be saved/loaded
public AddProperty ( ) : void
return void

AddProperty() public method

adds a property to be saved/loaded
public AddProperty ( PropertyInfo property ) : void
property System.Reflection.PropertyInfo
return void

Closing() public method

Method intended for use with Form.Closing events - directly calls Save
public Closing ( object sender, CancelEventArgs e ) : void
sender object
e CancelEventArgs
return void

Load() public method

loads the specified values from the registry
public Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

RegistryInfo() public method

public RegistryInfo ( object obj, string name ) : System
obj object the object to save/load values into the registry
name string the name of the registry key to save/load
return System

Save() public method

Saves the specified values into the registry
public Save ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void