C# 클래스 Smrf.AppLib.FormPlus

Represents a Form with additional features.
This class contains a set of methods for displaying messages and validating controls. It also implements an OnFirstActivated virtual method that the derived class can use to run time-consuming initialization code without preventing the form from appearing.

Most of the functionality in this class is also avaialable as a set of static methods in the FormUtil class.

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

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
FindControlByName ( String sName ) : Control
FormPlus ( ) : System

Initializes a new instance of the FormPlus class.

보호된 메소드들

메소드 설명
CheckAllCheckBoxes ( Control oParentControl, System.Boolean bCheck ) : void
CheckCheckBoxes ( System.Boolean bCheck ) : void
EnableControls ( System.Boolean bEnable ) : void
EnableControls ( System.Boolean bEnable, Control oControls ) : void
EnsureVisible ( ) : void
EnsureVisibleOnVisibleChanged ( Object sender, EventArgs e ) : void
FindControlByName ( String sName, Control oChildControls, Control &oControl ) : System.Boolean
OnActivated ( EventArgs e ) : void
OnFirstActivated ( ) : void
OnInvalidComboBox ( ComboBox oComboBox, String sErrorMessage ) : System.Boolean
OnInvalidControl ( Control control, String errorMessage ) : System.Boolean
OnInvalidDateTimePicker ( DateTimePicker oDateTimePicker, String sErrorMessage ) : System.Boolean
OnInvalidNumericUpDown ( NumericUpDown oNumericUpDown, String sErrorMessage ) : System.Boolean
OnInvalidTextBox ( TextBox oTextBox, String sErrorMessage ) : System.Boolean
PreventClosure ( Object sender, System e ) : void
ShowError ( String sText ) : void
ShowInformation ( String sText ) : void
ShowWarning ( String sText ) : void
TrimTextBox ( TextBox oTextBox ) : String
ValidateDirectoryTextBox ( TextBox oTextBox, String sErrorMessage, String &sDirectory ) : System.Boolean
ValidateDoubleTextBox ( TextBox oTextBox, Double dMinValue, Double dMaxValue, String sErrorMessage, Double &dDouble ) : System.Boolean
ValidateFileTextBox ( TextBox oTextBox, String sErrorMessage, String &sFile ) : System.Boolean
ValidateInt32TextBox ( TextBox oTextBox, Int32 iMinValue, Int32 iMaxValue, String sErrorMessage, Int32 &iInt32 ) : System.Boolean
ValidateListBoxSelection ( ListBox oListBox, String sErrorMessage ) : System.Boolean
ValidateNumericUpDown ( NumericUpDown oNumericUpDown, String sValueDescription, Decimal &decValue ) : System.Boolean
ValidateNumericUpDown ( NumericUpDown oNumericUpDown, String sValueDescription, Double &dValue ) : System.Boolean
ValidateNumericUpDown ( NumericUpDown oNumericUpDown, String sValueDescription, Int32 &iValue ) : System.Boolean
ValidateNumericUpDown ( NumericUpDown oNumericUpDown, String sValueDescription, System.Single &fValue ) : System.Boolean
ValidateRequiredComboBox ( ComboBox oComboBox, String sErrorMessage, String &sTrimmedText ) : System.Boolean
ValidateRequiredTextBox ( TextBox oTextBox, String sErrorMessage, String &sTrimmedText ) : System.Boolean

비공개 메소드들

메소드 설명
AssertValid ( ) : void

메소드 상세

CheckAllCheckBoxes() 보호된 메소드

protected CheckAllCheckBoxes ( Control oParentControl, System.Boolean bCheck ) : void
oParentControl System.Windows.Forms.Control
bCheck System.Boolean
리턴 void

CheckCheckBoxes() 보호된 메소드

protected CheckCheckBoxes ( System.Boolean bCheck ) : void
bCheck System.Boolean
리턴 void

EnableControls() 보호된 메소드

protected EnableControls ( System.Boolean bEnable ) : void
bEnable System.Boolean
리턴 void

EnableControls() 보호된 메소드

protected EnableControls ( System.Boolean bEnable, Control oControls ) : void
bEnable System.Boolean
oControls System.Windows.Forms.Control
리턴 void

EnsureVisible() 보호된 메소드

protected EnsureVisible ( ) : void
리턴 void

EnsureVisibleOnVisibleChanged() 보호된 메소드

protected EnsureVisibleOnVisibleChanged ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
리턴 void

FindControlByName() 보호된 메소드

protected FindControlByName ( String sName, Control oChildControls, Control &oControl ) : System.Boolean
sName String
oChildControls System.Windows.Forms.Control
oControl System.Windows.Forms.Control
리턴 System.Boolean

FindControlByName() 공개 메소드

public FindControlByName ( String sName ) : Control
sName String
리턴 System.Windows.Forms.Control

FormPlus() 공개 메소드

Initializes a new instance of the FormPlus class.
public FormPlus ( ) : System
리턴 System

OnActivated() 보호된 메소드

protected OnActivated ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnFirstActivated() 보호된 메소드

protected OnFirstActivated ( ) : void
리턴 void

OnInvalidComboBox() 보호된 메소드

protected OnInvalidComboBox ( ComboBox oComboBox, String sErrorMessage ) : System.Boolean
oComboBox System.Windows.Forms.ComboBox
sErrorMessage String
리턴 System.Boolean

OnInvalidControl() 보호된 메소드

protected OnInvalidControl ( Control control, String errorMessage ) : System.Boolean
control System.Windows.Forms.Control
errorMessage String
리턴 System.Boolean

OnInvalidDateTimePicker() 보호된 메소드

protected OnInvalidDateTimePicker ( DateTimePicker oDateTimePicker, String sErrorMessage ) : System.Boolean
oDateTimePicker System.Windows.Forms.DateTimePicker
sErrorMessage String
리턴 System.Boolean

OnInvalidNumericUpDown() 보호된 메소드

protected OnInvalidNumericUpDown ( NumericUpDown oNumericUpDown, String sErrorMessage ) : System.Boolean
oNumericUpDown System.Windows.Forms.NumericUpDown
sErrorMessage String
리턴 System.Boolean

OnInvalidTextBox() 보호된 메소드

protected OnInvalidTextBox ( TextBox oTextBox, String sErrorMessage ) : System.Boolean
oTextBox System.Windows.Forms.TextBox
sErrorMessage String
리턴 System.Boolean

PreventClosure() 보호된 메소드

protected PreventClosure ( Object sender, System e ) : void
sender Object
e System
리턴 void

ShowError() 보호된 메소드

protected ShowError ( String sText ) : void
sText String
리턴 void

ShowInformation() 보호된 메소드

protected ShowInformation ( String sText ) : void
sText String
리턴 void

ShowWarning() 보호된 메소드

protected ShowWarning ( String sText ) : void
sText String
리턴 void

TrimTextBox() 보호된 메소드

protected TrimTextBox ( TextBox oTextBox ) : String
oTextBox System.Windows.Forms.TextBox
리턴 String

ValidateDirectoryTextBox() 보호된 메소드

protected ValidateDirectoryTextBox ( TextBox oTextBox, String sErrorMessage, String &sDirectory ) : System.Boolean
oTextBox System.Windows.Forms.TextBox
sErrorMessage String
sDirectory String
리턴 System.Boolean

ValidateDoubleTextBox() 보호된 메소드

protected ValidateDoubleTextBox ( TextBox oTextBox, Double dMinValue, Double dMaxValue, String sErrorMessage, Double &dDouble ) : System.Boolean
oTextBox System.Windows.Forms.TextBox
dMinValue Double
dMaxValue Double
sErrorMessage String
dDouble Double
리턴 System.Boolean

ValidateFileTextBox() 보호된 메소드

protected ValidateFileTextBox ( TextBox oTextBox, String sErrorMessage, String &sFile ) : System.Boolean
oTextBox System.Windows.Forms.TextBox
sErrorMessage String
sFile String
리턴 System.Boolean

ValidateInt32TextBox() 보호된 메소드

protected ValidateInt32TextBox ( TextBox oTextBox, Int32 iMinValue, Int32 iMaxValue, String sErrorMessage, Int32 &iInt32 ) : System.Boolean
oTextBox System.Windows.Forms.TextBox
iMinValue System.Int32
iMaxValue System.Int32
sErrorMessage String
iInt32 System.Int32
리턴 System.Boolean

ValidateListBoxSelection() 보호된 메소드

protected ValidateListBoxSelection ( ListBox oListBox, String sErrorMessage ) : System.Boolean
oListBox System.Windows.Forms.ListBox
sErrorMessage String
리턴 System.Boolean

ValidateNumericUpDown() 보호된 메소드

protected ValidateNumericUpDown ( NumericUpDown oNumericUpDown, String sValueDescription, Decimal &decValue ) : System.Boolean
oNumericUpDown System.Windows.Forms.NumericUpDown
sValueDescription String
decValue Decimal
리턴 System.Boolean

ValidateNumericUpDown() 보호된 메소드

protected ValidateNumericUpDown ( NumericUpDown oNumericUpDown, String sValueDescription, Double &dValue ) : System.Boolean
oNumericUpDown System.Windows.Forms.NumericUpDown
sValueDescription String
dValue Double
리턴 System.Boolean

ValidateNumericUpDown() 보호된 메소드

protected ValidateNumericUpDown ( NumericUpDown oNumericUpDown, String sValueDescription, Int32 &iValue ) : System.Boolean
oNumericUpDown System.Windows.Forms.NumericUpDown
sValueDescription String
iValue System.Int32
리턴 System.Boolean

ValidateNumericUpDown() 보호된 메소드

protected ValidateNumericUpDown ( NumericUpDown oNumericUpDown, String sValueDescription, System.Single &fValue ) : System.Boolean
oNumericUpDown System.Windows.Forms.NumericUpDown
sValueDescription String
fValue System.Single
리턴 System.Boolean

ValidateRequiredComboBox() 보호된 메소드

protected ValidateRequiredComboBox ( ComboBox oComboBox, String sErrorMessage, String &sTrimmedText ) : System.Boolean
oComboBox System.Windows.Forms.ComboBox
sErrorMessage String
sTrimmedText String
리턴 System.Boolean

ValidateRequiredTextBox() 보호된 메소드

protected ValidateRequiredTextBox ( TextBox oTextBox, String sErrorMessage, String &sTrimmedText ) : System.Boolean
oTextBox System.Windows.Forms.TextBox
sErrorMessage String
sTrimmedText String
리턴 System.Boolean

프로퍼티 상세

m_bActivated 보호되어 있는 프로퍼티

protected Boolean,System m_bActivated
리턴 System.Boolean