C# 클래스 Smrf.AppLib.FormUtil

Form utility methods.
This class contains a set of static methods for displaying messages and validating controls. It is meant for use by Form and classes.

Most of the functionality in this class is also in the class, which can serve as a base class for derived forms.

상속: Object
파일 보기 프로젝트 열기: 2014-sed-team3/term-project

보호된 프로퍼티들

프로퍼티 타입 설명
m_sApplicationName String

공개 메소드들

메소드 설명
EnableControls ( System.Boolean bEnable ) : void
EnableControls ( System.Boolean bEnable, Control oControls ) : void
OnInvalidComboBox ( ComboBox oComboBox, String sErrorMessage ) : System.Boolean
OnInvalidControl ( Control oControl, String sErrorMessage ) : System.Boolean
OnInvalidDateTimePicker ( DateTimePicker oDateTimePicker, String sErrorMessage ) : System.Boolean
OnInvalidNumericUpDown ( NumericUpDown oNumericUpDown, String sErrorMessage ) : System.Boolean
OnInvalidTextBox ( TextBox oTextBox, String sErrorMessage ) : System.Boolean
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

비공개 메소드들

메소드 설명
FormUtil ( ) : System

Static constructor for the FormUtil class.

메소드 상세

EnableControls() 공개 정적인 메소드

public static EnableControls ( System.Boolean bEnable ) : void
bEnable System.Boolean
리턴 void

EnableControls() 공개 정적인 메소드

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

OnInvalidComboBox() 공개 정적인 메소드

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

OnInvalidControl() 공개 정적인 메소드

public static OnInvalidControl ( Control oControl, String sErrorMessage ) : System.Boolean
oControl System.Windows.Forms.Control
sErrorMessage String
리턴 System.Boolean

OnInvalidDateTimePicker() 공개 정적인 메소드

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

OnInvalidNumericUpDown() 공개 정적인 메소드

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

OnInvalidTextBox() 공개 정적인 메소드

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

ShowError() 공개 정적인 메소드

public static ShowError ( String sText ) : void
sText String
리턴 void

ShowInformation() 공개 정적인 메소드

public static ShowInformation ( String sText ) : void
sText String
리턴 void

ShowWarning() 공개 정적인 메소드

public static ShowWarning ( String sText ) : void
sText String
리턴 void

TrimTextBox() 공개 정적인 메소드

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

ValidateDirectoryTextBox() 공개 정적인 메소드

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

ValidateDoubleTextBox() 공개 정적인 메소드

public static 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() 공개 정적인 메소드

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

ValidateInt32TextBox() 공개 정적인 메소드

public static 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() 공개 정적인 메소드

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

ValidateNumericUpDown() 공개 정적인 메소드

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

ValidateNumericUpDown() 공개 정적인 메소드

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

ValidateNumericUpDown() 공개 정적인 메소드

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

ValidateNumericUpDown() 공개 정적인 메소드

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

ValidateRequiredComboBox() 공개 정적인 메소드

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

ValidateRequiredTextBox() 공개 정적인 메소드

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

프로퍼티 상세

m_sApplicationName 보호되어 있는 정적으로 프로퍼티

protected static String m_sApplicationName
리턴 String