Exemplo n.º 1
0
        /// <summary>
        /// Undo the last operation added.
        /// </summary>
        public void Undo()
        {
            if (this.undoStack.Count > 0)
            {
                UndoableCommand command = this.undoStack.Pop();

                command.UnExecute();

                this.redoStack.Push(command);
            }
        }
        /// <summary>
        /// Undo the last operation added.
        /// </summary>
        public void Undo()
        {
            if (this.undoStack.Count > 0)
            {
                UndoableCommand command = this.undoStack.Pop();

                command.UnExecute();

                this.redoStack.Push(command);
                this.eventManager.GetEvent <OperationUndoneInTimelineEvent>().Publish(null);
            }
        }