private void OnCollectionChanged(specialized.NotifyCollectionChangedAction action, KeyValuePair <TKey, TValue> newItem, KeyValuePair <TKey, TValue> oldItem)
 {
     OnPropertyChanged();
     if (CollectionChanged != null)
     {
         CollectionChanged(this, new specialized.NotifyCollectionChangedEventArgs(action, newItem, oldItem));
     }
 }
 private void OnCollectionChanged(specialized.NotifyCollectionChangedAction action, IList newItems)
 {
     OnPropertyChanged();
     if (CollectionChanged != null)
     {
         CollectionChanged(this, new specialized.NotifyCollectionChangedEventArgs(action, newItems));
     }
 }
Пример #3
0
        public bool OnCollectionChanged(Actions action, T element)
        {
            if (action == Actions.Reset)
            {
                CollectionChanged?.Invoke(this, new ChangedEventArgs(Actions.Reset));
            }
            else
            {
                CollectionChanged?.Invoke(this, new ChangedEventArgs(action, element));
            }

            return(true);
        }