private void CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { if (!Profile.IsDiscarding) { var action = new CollectionChangedActionItem(items, e); Profile.ActionStack.Add(action); Profile.NotifyEntryChanged(Name); } }
public CollectionChangedViewModelActionItem(string name, IEnumerable <IDirtiableViewModel> dirtiables, IList list, NotifyCollectionChangedEventArgs args, IDispatcherService dispatcher) : this(name, dirtiables, dispatcher) { innerActionItem = new CollectionChangedActionItem(list, args); }
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); }