Example #1
0
 private void Validate(IValidator validator)
 {
     if (!validator.Validate())
     {
         ErrorStateManager.Add(validator.PropertyName, validator.Message);
     }
     else
     {
         ErrorStateManager.Remove(validator.PropertyName, validator.Message);
     }
 }
Example #2
0
        public virtual void ValidateAll()
        {
            ErrorStateManager.Clear();

            Validate(Validators);
        }
Example #3
0
 public ValidationViewModelBase()
 {
     ErrorStateManager = new ErrorStateManager();
 }