C# 클래스 Gwupe.Agent.UI.WPF.Utils.InputValidator

파일 보기 프로젝트 열기: gwupe/Gwupe 1 사용 예제들

공개 메소드들

메소드 설명
ResetStatus ( Control textBoxes = null, System.Windows.Controls.Label labels = null ) : void
SetError ( string error, Control control = null, System.Windows.Controls.Label label = null ) : void
SetStatus ( string status ) : void
ValidateEmail ( TextBox email, System.Windows.Controls.Label emailLabel ) : bool
ValidateFieldMatches ( Control textBox, string text, System.Windows.Controls.Label label, string errorString, string placeHolder, string regEx ) : bool
ValidateFieldNonEmpty ( Control control, string text, System.Windows.Controls.Label textLabel, string errorText, string defaultValue = "" ) : bool

비공개 메소드들

메소드 설명
InputValidator ( System.Windows.Controls.TextBlock statusText, System.Windows.Controls.TextBlock errorText, Dispatcher dispatcher, bool collapse = false ) : System
MarkErrorField ( Control control, System.Windows.Controls.Label label = null ) : void

메소드 상세

ResetStatus() 공개 메소드

public ResetStatus ( Control textBoxes = null, System.Windows.Controls.Label labels = null ) : void
textBoxes System.Windows.Controls.Control
labels System.Windows.Controls.Label
리턴 void

SetError() 공개 메소드

public SetError ( string error, Control control = null, System.Windows.Controls.Label label = null ) : void
error string
control System.Windows.Controls.Control
label System.Windows.Controls.Label
리턴 void

SetStatus() 공개 메소드

public SetStatus ( string status ) : void
status string
리턴 void

ValidateEmail() 공개 메소드

public ValidateEmail ( TextBox email, System.Windows.Controls.Label emailLabel ) : bool
email System.Windows.Controls.TextBox
emailLabel System.Windows.Controls.Label
리턴 bool

ValidateFieldMatches() 공개 메소드

public ValidateFieldMatches ( Control textBox, string text, System.Windows.Controls.Label label, string errorString, string placeHolder, string regEx ) : bool
textBox System.Windows.Controls.Control
text string
label System.Windows.Controls.Label
errorString string
placeHolder string
regEx string
리턴 bool

ValidateFieldNonEmpty() 공개 메소드

public ValidateFieldNonEmpty ( Control control, string text, System.Windows.Controls.Label textLabel, string errorText, string defaultValue = "" ) : bool
control System.Windows.Controls.Control
text string
textLabel System.Windows.Controls.Label
errorText string
defaultValue string
리턴 bool