C# Class Treefrog.Windows.Controllers.ValidationController

Inheritance: IDisposable
Afficher le fichier Open project: jaquadro/Treefrog Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
RegisterControl ( Control control, Func validationFunc ) : void
RegisterValidationFunc ( Func validationFunc ) : void
UnregisterControl ( Control control ) : void
UnregisterValidationFunc ( Func validationFunc ) : void
Validate ( ) : void
ValidateForm ( ) : bool
ValidateGreater ( string fieldName, NumericUpDown control, string refName, NumericUpDown reference ) : Func
ValidateGreaterEq ( string fieldName, NumericUpDown control, string refName, NumericUpDown reference ) : Func
ValidateLess ( string fieldName, NumericUpDown control, string refName, NumericUpDown reference ) : Func
ValidateLessEq ( string fieldName, NumericUpDown control, string refName, NumericUpDown reference ) : Func
ValidateNonEmptyName ( string fieldName, TextBox control, IEnumerable reservedNames ) : Func
ValidateNumericUpDownFunc ( string fieldName, NumericUpDown control ) : Func

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
DetermineErrorIconPadding ( Control control ) : int
EnableButtons ( bool enable ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

RegisterControl() public méthode

public RegisterControl ( Control control, Func validationFunc ) : void
control System.Windows.Forms.Control
validationFunc Func
Résultat void

RegisterValidationFunc() public méthode

public RegisterValidationFunc ( Func validationFunc ) : void
validationFunc Func
Résultat void

UnregisterControl() public méthode

public UnregisterControl ( Control control ) : void
control System.Windows.Forms.Control
Résultat void

UnregisterValidationFunc() public méthode

public UnregisterValidationFunc ( Func validationFunc ) : void
validationFunc Func
Résultat void

Validate() public méthode

public Validate ( ) : void
Résultat void

ValidateForm() public méthode

public ValidateForm ( ) : bool
Résultat bool

ValidateGreater() public static méthode

public static ValidateGreater ( string fieldName, NumericUpDown control, string refName, NumericUpDown reference ) : Func
fieldName string
control System.Windows.Forms.NumericUpDown
refName string
reference System.Windows.Forms.NumericUpDown
Résultat Func

ValidateGreaterEq() public static méthode

public static ValidateGreaterEq ( string fieldName, NumericUpDown control, string refName, NumericUpDown reference ) : Func
fieldName string
control System.Windows.Forms.NumericUpDown
refName string
reference System.Windows.Forms.NumericUpDown
Résultat Func

ValidateLess() public static méthode

public static ValidateLess ( string fieldName, NumericUpDown control, string refName, NumericUpDown reference ) : Func
fieldName string
control System.Windows.Forms.NumericUpDown
refName string
reference System.Windows.Forms.NumericUpDown
Résultat Func

ValidateLessEq() public static méthode

public static ValidateLessEq ( string fieldName, NumericUpDown control, string refName, NumericUpDown reference ) : Func
fieldName string
control System.Windows.Forms.NumericUpDown
refName string
reference System.Windows.Forms.NumericUpDown
Résultat Func

ValidateNonEmptyName() public static méthode

public static ValidateNonEmptyName ( string fieldName, TextBox control, IEnumerable reservedNames ) : Func
fieldName string
control System.Windows.Forms.TextBox
reservedNames IEnumerable
Résultat Func

ValidateNumericUpDownFunc() public static méthode

public static ValidateNumericUpDownFunc ( string fieldName, NumericUpDown control ) : Func
fieldName string
control System.Windows.Forms.NumericUpDown
Résultat Func