Beispiel #1
0
 private void CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (!Profile.IsDiscarding)
     {
         var action = new CollectionChangedActionItem(items, e);
         Profile.ActionStack.Add(action);
         Profile.NotifyEntryChanged(Name);
     }
 }
Beispiel #2
0
 public CollectionChangedViewModelActionItem(string name, IEnumerable <IDirtiableViewModel> dirtiables, IList list, NotifyCollectionChangedEventArgs args, IDispatcherService dispatcher)
     : this(name, dirtiables, dispatcher)
 {
     innerActionItem = new CollectionChangedActionItem(list, args);
 }
Beispiel #3
0
 public CollectionChangedViewModelActionItem(string name, IEnumerable <IDirtiableViewModel> dirtiables, IList list, NotifyCollectionChangedAction actionToUndo, IReadOnlyCollection <object> items, int index, IDispatcherService dispatcher)
     : this(name, dirtiables, dispatcher)
 {
     innerActionItem = new CollectionChangedActionItem(list, actionToUndo, items, index);
 }