Exemple #1
0
        public void Redo()
        {
            if (!CanRedo)
            {
                return;
            }

            WUndoCommand action = m_redoStack.Pop();

            action.Redo();

            m_undoStack.Push(action);
        }
Exemple #2
0
        public void Redo()
        {
            if (!CanRedo)
            {
                return;
            }

            WUndoCommand action = m_redoStack.Pop();

            m_isUndoingOrRedoing = true;
            action.Redo();
            m_isUndoingOrRedoing = false;

            m_undoStack.Push(action);
        }