示例#1
0
            public void Redo()
            {
                UndoRedoItem <T> top = (UndoRedoItem <T>)_redoStack.Pop();

                top.Cmd.Execute(top);

                top.SwapOldAndNew();
                _undoStack.Push(top);
                //RemoveChangeLog(top);
            }
示例#2
0
            public void Undo(bool canRedo)
            {
                UndoRedoItem <T> top = _undoStack.Pop();

                top.Cmd.UnExecute(top);

                if (canRedo == true)
                {
                    top.SwapOldAndNew();
                    _redoStack.Push(top);
                }

                //AddChangeLog(top);
            }