Exemplo n.º 1
0
        public void DoUndo()
        {
            UndoRedoCommandCollection undoCommad = undoStack.Pop();

            redoStack.Push(undoCommad);   //push command onto redo stack
            undoCommad.Undo();            //perform undoCommand's overidden Undo command
        }
Exemplo n.º 2
0
        public void DoRedo()
        {
            UndoRedoCommandCollection redoCommad = redoStack.Pop();

            undoStack.Push(redoCommad);   //push command onto undo stack
            redoCommad.Redo();            //perform redoCommand's overidden Undo command
        }
Exemplo n.º 3
0
        }                                                                   //title of the top cmd on redo stack


        public void PushUndo(UndoRedoCommandCollection command)
        {
            undoStack.Push(command);      //push command onto undo stack
        }