internal void AddRequiredFieldValidator(ValidatorBuilder validatorBuilder, ValidationItem item) { var validator = validatorBuilder.GetRequiredFieldValidator(item, NextValidationControlId); Validators.Add(validator); var calloutExtender = validatorBuilder.GetCalloutExtender(validator, NextValidationControlId); AddToForm(validator, calloutExtender); }
public ValidationGroup(ValidationBuilder validationBuilder, ValidationSettings settings, string validationGroupId) { _validationBuilder = validationBuilder; _groupIdentifier = validationGroupId; _validatorBuilder = new ValidatorBuilder(_groupIdentifier, settings); }
internal void AddRegularExpressionValidator(ValidatorBuilder validatorBuilder, ValidationItem item, string regex) { var validator = validatorBuilder.GetRegularExpressionValidator(item, NextValidationControlId, regex); Validators.Add(validator); var calloutExtender = validatorBuilder.GetCalloutExtender(validator, NextValidationControlId); AddToForm(validator, calloutExtender); }