Contains arguments for the ValidationHelper.ResultChanged event.
Inheritance: System.EventArgs
        private void OnValidatorResultChanged(object sender, ValidationResultChangedEventArgs e)
        {
            var validator = (ValidationHelper)sender;

            resultsByValidator[validator] = e.NewResult;

            NotifyCombinedResultChanged();
        }
Example #2
0
        private void OnResultChanged(ValidationResultChangedEventArgs e)
        {
            var handler = ResultChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #3
0
        private void OnValidatorResultChanged(object sender, ValidationResultChangedEventArgs e, SynchronizationContext syncContext)
        {
            if (syncContext != null)
            {
                syncContext.Post(_ => OnValidatorResultChanged(sender, e, null), null);

                return;
            }

            OnErrorsChanged(e.Target as string);
        }
Example #4
0
        private void OnValidatorResultChanged(object sender, ValidationResultChangedEventArgs e)
        {
            if (errorsChangedNotificationContext != null)
            {
                errorsChangedNotificationContext.Post(_ => {
                    OnErrorsChanged(e.Target as string);
                }, null);

                return;
            }

            OnErrorsChanged(e.Target as string);
        }
Example #5
0
 public void Unit_ValidationResultChanged(object sender, ValidationResultChangedEventArgs e)
 {
     Validate(() => Unit);
 }
 private void OnResultChanged(ValidationResultChangedEventArgs e)
 {
     ResultChanged?.Invoke(this, e);
 }
        private void OnValidatorResultChanged(object sender, ValidationResultChangedEventArgs e,
            SynchronizationContext syncContext)
        {
            if (syncContext != null)
            {
                syncContext.Post(_ => OnValidatorResultChanged(sender, e, null), null);

                return;
            }

            OnErrorsChanged(e.Target as string);
        }
        private void OnValidatorResultChanged(object sender, ValidationResultChangedEventArgs e)
        {
            var validator = (ValidationHelper) sender;

            resultsByValidator[validator] = e.NewResult;

            NotifyCombinedResultChanged();
        }
 private void OnResultChanged(ValidationResultChangedEventArgs e)
 {
     ResultChanged?.Invoke(this, e);
 }
 private void OnResultChanged(ValidationResultChangedEventArgs e)
 {
     var handler = ResultChanged;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Example #11
0
 private void OnValidationResultChanged(object sender, ValidationResultChangedEventArgs e)
 {
     // Get current state of the validation
     if (!IsValid.GetValueOrDefault(true))
     {
         ValidationResult validationResult = Validator.GetResult();
         UpdateValidationSummary(validationResult);
     }
 }
Example #12
0
 private void Validator_ResultChanged(object sender, ValidationResultChangedEventArgs e)
 {
     this.Message = e.NewResult.ToString();
 }
Example #13
0
 private void Validator_ResultChanged(object sender, ValidationResultChangedEventArgs e)
 {
     OnNewMessage(e.NewResult.ToString());
 }