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); }
private static void OnNodeErrorsChanged(object sender, ErrorsChangedEventArgs e) { var node = (ErrorNode)sender; UpdateErrorsAndHasErrors(node.Source, e.Removed, e.Added, node.Errors); }