C# 클래스 Smrf.AppLib.FormSettings

Saves a form's window state and rectangle in the user's settings.
This can be used as a base class for storing user settings in a Windows Forms application. This class automatically saves the window state, location, and optionally size (if the form is resizable) of a specified form when the form closes, and restores them when the form is loaded.

Derive a class from this one, add any form-specific user setting properties to the derived class, instantiate the dervied class in the form's constructor, and save the instantiated object in a member field.

It is not necessary to call ApplicationSettingsBase.Save when the form is closing. This class does that automatically.

This is for .NET 2.0 and later applications only.

상속: System.Configuration.ApplicationSettingsBase
파일 보기 프로젝트 열기: 2014-sed-team3/term-project

보호된 프로퍼티들

프로퍼티 타입 설명
m_bFormIsFixedSize System.Boolean

Private Properties

프로퍼티 타입 설명
AssertValid void

공개 메소드들

메소드 설명
FormSettings ( Form form, System.Boolean formIsFixedSize ) : System

Initializes a new instance of the FormSettings class.

보호된 메소드들

메소드 설명
Form_FormClosing ( object sender, FormClosingEventArgs e ) : void
Form_Load ( object sender, EventArgs e ) : void
RestoreFormWindow ( Form oForm ) : void
SaveFormWindow ( Form oForm ) : void

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

FormSettings() 공개 메소드

Initializes a new instance of the FormSettings class.
public FormSettings ( Form form, System.Boolean formIsFixedSize ) : System
form System.Windows.Forms.Form /// The form to save settings for. ///
formIsFixedSize System.Boolean /// true if is of fixed size, false if it is /// resizable. If false, the form's size is restored along with the form's /// window state and location. ///
리턴 System

Form_FormClosing() 보호된 메소드

protected Form_FormClosing ( object sender, FormClosingEventArgs e ) : void
sender object
e System.Windows.Forms.FormClosingEventArgs
리턴 void

Form_Load() 보호된 메소드

protected Form_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

RestoreFormWindow() 보호된 메소드

protected RestoreFormWindow ( Form oForm ) : void
oForm System.Windows.Forms.Form
리턴 void

SaveFormWindow() 보호된 메소드

protected SaveFormWindow ( Form oForm ) : void
oForm System.Windows.Forms.Form
리턴 void

프로퍼티 상세

m_bFormIsFixedSize 보호되어 있는 프로퍼티

protected Boolean,System m_bFormIsFixedSize
리턴 System.Boolean