Ejemplo n.º 1
0
        public ValidationResult Validate(IValidatable fieldObject)
        {
            ChangedField = fieldObject;
            RecordForm   = ChangedField.GetRecordForm();
            var verifyResponse = ValidateExtention();

            return(new ValidationResult(verifyResponse.IsValid, verifyResponse.GetErrorString()));
        }
Ejemplo n.º 2
0
        public override ValidationResult Validate(object value, CultureInfo cultureInfo)
        {
            var bindingExpression = value;

            if (bindingExpression == null)
            {
                throw new ArgumentNullException("value");
            }
            ChangedField = (IValidatable)((BindingExpression)value).DataItem;
            RecordForm   = ChangedField.GetRecordForm();
            var verifyResponse = ValidateExtention();

            return(new ValidationResult(verifyResponse.IsValid, verifyResponse.GetErrorString()));
        }