private void CollectionEventsChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Add)
     {
         EventAdded?.Invoke(this, e);
     }
     if (e.Action == NotifyCollectionChangedAction.Remove)
     {
         EventRemoved?.Invoke(this, e);
     }
 }
Example #2
0
 private void EventChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Add)
     {
         EventAdded?.Invoke(this, new EventArgs());
     }
     else if (e.Action == NotifyCollectionChangedAction.Remove)
     {
         EventRemoved?.Invoke(this, new EventArgs());
     }
 }
 private void TriggerEventRemoved(EventData eventData)
 {
     EventRemoved?.Invoke(this, null);
 }
 protected virtual void OnEventRemoved(EventSourcingArgs <T, TKey> e)
 {
     EventRemoved?.Invoke(this, e);
 }