public void AddValidationMessage(string msg, IValidationHelperObject vho) { var v = instances.FirstOrDefault(o => o == vho) as IValidationHelperObject; if (v != null) { v.AddError(msg); } validationResults.Add(new ValidationResult(msg)); }
public void AddValidationMessage(string msg, IValidationHelperObject vho) { var v = instances.FirstOrDefault(o => o == vho) as IValidationHelperObject; if (v != null) v.AddError(msg); validationResults.Add(new ValidationResult(msg)); }