public ValidationResult Validate(IValidatable fieldObject) { ChangedField = fieldObject; RecordForm = ChangedField.GetRecordForm(); var verifyResponse = ValidateExtention(); return(new ValidationResult(verifyResponse.IsValid, verifyResponse.GetErrorString())); }
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())); }