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
파일 보기 프로젝트 열기: Jedzia/NStub

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