示例#1
0
 private void ModelToManage_ModelChanged(IModelNode modelNode, IUndoRedoHandle handle)
 {
     Push(handle);
 }
示例#2
0
        /// <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");
        }