コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: ValidationGroup.cs プロジェクト: teamaton/speak-lib
 public ValidationGroup(ValidationBuilder validationBuilder, ValidationSettings settings, string validationGroupId)
 {
     _validationBuilder = validationBuilder;
     _groupIdentifier = validationGroupId;
     _validatorBuilder = new ValidatorBuilder(_groupIdentifier, settings);
 }
コード例 #3
0
 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);
 }