//Perform the redo! public void Redo(Spreadsheet sheet) { UndoRedoCollection commands = redoStack.Pop(); //add the redo back onto the undo stack undoStack.Push(commands.Restore(sheet)); }
// ops redo action and does it public void Redo(Spreadsheet sheet) { UndoRedoCollection action = mRedos.Pop(); mUndos.Push(action.Restore(sheet)); }
/// <summary> /// Execute the redo right here, /// </summary> /// <param name="sheet"></param> public void Redo(Spreadsheet sheet) { UndoRedoCollection commands = redoStack.Pop(); undoStack.Push(commands.Restore(sheet)); }