C# Class Gwupe.Agent.UI.WPF.Utils.InputValidator

Afficher le fichier Open project: gwupe/Gwupe Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

ResetStatus() public méthode

public ResetStatus ( Control textBoxes = null, System.Windows.Controls.Label labels = null ) : void
textBoxes System.Windows.Controls.Control
labels System.Windows.Controls.Label
Résultat void

SetError() public méthode

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
Résultat void

SetStatus() public méthode

public SetStatus ( string status ) : void
status string
Résultat void

ValidateEmail() public méthode

public ValidateEmail ( TextBox email, System.Windows.Controls.Label emailLabel ) : bool
email System.Windows.Controls.TextBox
emailLabel System.Windows.Controls.Label
Résultat bool

ValidateFieldMatches() public méthode

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
Résultat bool

ValidateFieldNonEmpty() public méthode

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
Résultat bool