private void ModelToManage_ModelChanged(IModelNode modelNode, IUndoRedoHandle handle) { Push(handle); }
/// <summary> /// Pushes the specified <see cref="IUndoRedoHandle"/> onto the undo stack. /// </summary> /// <param name="handle">The handle.</param> public void Push(IUndoRedoHandle handle) { _redoStack.Clear(); _undoStack.Push(handle); NotifyOfPropertyChange("CanUndo"); NotifyOfPropertyChange("CanRedo"); }