/// <summary> /// Undo the last action. /// </summary> public void Undo() { if (_undoableActions.Count <= 0) { return; } IUndoable action = _undoableActions.Pop(); action.ExecuteUndo(); _redoableActions.Push(action); _saveLoadManager.Unsaved = true; }
public void Execute() { _redoableActions.Push(_action); _action.ExecuteUndo(); }