public void Redo(Spreadsheet sheet) {//this is what redo does UndoRedoCollection commands = redoStack.Pop(); undoStack.Push(commands.Restore(sheet)); }
public void AddUndo(UndoRedoCollection undos) { //add undo's and clear undoStack.Push(undos); redoStack.Clear(); }