C# Класс 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;)

Наследование: NStub.Gui.Util.SettingsHelper, IComponent
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
MainFormLoad void

Открытые методы

Метод Описание
SettingsHelperComponent ( IContainer container ) : System

Initializes a new instance of the SettingsHelperComponent class.

Приватные методы

Метод Описание
MainFormLoad ( object sender, EventArgs e ) : void

Occurs when the parent-form is loaded.

Описание методов

SettingsHelperComponent() публичный Метод

Initializes a new instance of the SettingsHelperComponent class.
public SettingsHelperComponent ( IContainer container ) : System
container IContainer The container.
Результат System