/// <summary> /// Bubbles a model change notification. /// </summary> /// <param name="source">The source.</param> /// <param name="handle">The handle.</param> public void BubbleModelChange(IModelNode source, IUndoRedoHandle handle) { ModelChanged(source, handle); if (Parent != null) { Parent.BubbleModelChange(source, 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"); }
/// <summary> /// Bubbles a model change notification. /// </summary> /// <param name="source">The source.</param> /// <param name="handle">The handle.</param> public void BubbleModelChange(IModelNode source, IUndoRedoHandle handle) { ModelChanged(source, handle); _parent.BubbleModelChange(source, handle); }
private void ModelToManage_ModelChanged(IModelNode modelNode, IUndoRedoHandle handle) { Push(handle); }