public CountryFieldValidationPropertyDescriptor(
     string name,
     CountryFieldValidatorType fieldValidatorType)
     : base(name, string.Empty, string.Empty, false)
 {
     this._fieldValidatorType = fieldValidatorType;
 }
Example #2
0
        public CountryFieldValidator GetValidator(CountryFieldValidatorType type)
        {
            CountryFieldValidator countryFieldValidator = null;

            if (this.Validators != null && CountryFieldValidatorLookup.ContainsKey(type))
            {
                for (int index = 0; index < this.Validators.Length; ++index)
                {
                    CountryFieldValidator validator = this.Validators[index];
                    if (validator.Name == (string)CountryFieldValidatorLookup[type])
                    {
                        countryFieldValidator = validator;
                        break;
                    }
                }
            }
            return(countryFieldValidator);
        }
Example #3
0
 public PhoneNumberDescriptors(string name, CountryFieldValidatorType type)
     : base(name, type)
 {
 }