Validator Constructor CleanCode C# Libraries v1.2.03 API
Initializes a new instance of the Validator class.

Namespace: CleanCode.Forms
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public Validator(
	Button okButton,
	ErrorProvider errorProvider
)
Remarks

If you provide an okButton, then that OnlineButtonwill be enabled when all validations pass and disabled when any validation fails. If you provide an OnlineErrorProvider, that component will be used to flag validation errors to the user. An alternative to the ErrorProvider is to provide an errLabel to the Add(TextBox, Label) method. That errLabel will be made visible and filled with a validation error message when a validation fails.
See Also