C# Class NStub.Gui.Components.SettingsHelperComponent

Helper object that extends the standard application settings mechanism with automatic upgrade of settings.
For a detailed description see the remarks on the SettingsHelper.GoInstall Property.

Easy setup steps:

Drag the SettingsHelperComponent onto your Main Form. Set the Main Form property of the component to your main form. This attach's it to the Closing event and saves the settings when you leave the application. Provide a boolean property named GoInstall that is by default false with your application settings. Set the Settings property of the component to your application settings. The this.settings field is the SettingsHelperComponent. public MainForm() { this.InitializeComponent(); this.settings.Settings = Settings.Default; }

Thats it;)

Inheritance: NStub.Gui.Util.SettingsHelper, IComponent
Show file Open project: Jedzia/NStub

Private Properties

Property Type Description
MainFormLoad void

Public Methods

Method Description
SettingsHelperComponent ( IContainer container ) : System

Initializes a new instance of the SettingsHelperComponent class.

Private Methods

Method Description
MainFormLoad ( object sender, EventArgs e ) : void

Occurs when the parent-form is loaded.

Method Details

SettingsHelperComponent() public method

Initializes a new instance of the SettingsHelperComponent class.
public SettingsHelperComponent ( IContainer container ) : System
container IContainer The container.
return System