EventArgs for Scope.ErrorsChanged event.
Inheritance: System.Windows.RoutedEventArgs
コード例 #1
0
        private void OnErrorsChanged(object sender, ErrorsChangedEventArgs e)
        {
            if ((this.Errors.Count == 0 && e.Removed.Any()) ||
                Enumerable.SequenceEqual(this.Errors, e.Added))
            {
                this.OnPropertyChanged(HasErrorsPropertyChangedEventArgs);
            }

            this.ErrorsChanged?.Invoke(this, e);
        }
コード例 #2
0
        private void OnErrorsChanged(object sender, ErrorsChangedEventArgs e)
        {
            if ((this.Errors.Count == 0 && e.Removed.Any()) ||
                Enumerable.SequenceEqual(this.Errors, e.Added))
            {
                this.OnPropertyChanged(HasErrorsPropertyChangedEventArgs);
            }

            this.ErrorsChanged?.Invoke(this, e);
        }
コード例 #3
0
        private static void OnNodeErrorsChanged(object sender, ErrorsChangedEventArgs e)
        {
            var node = (ErrorNode)sender;

            UpdateErrorsAndHasErrors(node.Source, e.Removed, e.Added, node.Errors);
        }
コード例 #4
0
 private static void OnNodeErrorsChanged(object sender, ErrorsChangedEventArgs e)
 {
     var node = (ErrorNode)sender;
     UpdateErrorsAndHasErrors(node.Source, e.Removed, e.Added, node.Errors);
 }