private void Validate(IValidator validator) { if (!validator.Validate()) { ErrorStateManager.Add(validator.PropertyName, validator.Message); } else { ErrorStateManager.Remove(validator.PropertyName, validator.Message); } }
public virtual void ValidateAll() { ErrorStateManager.Clear(); Validate(Validators); }
public ValidationViewModelBase() { ErrorStateManager = new ErrorStateManager(); }