예제 #1
0
        /// <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;
        }
예제 #2
0
 public void Execute()
 {
     _redoableActions.Push(_action);
     _action.ExecuteUndo();
 }