Exemplo n.º 1
0
        /// <summary> 重做 </summary>
        public void Redo()
        {
            if (FUndoList.Enable)
            {
                try
                {
                    FUndoList.Enable = false;

                    BeginUpdate();
                    try
                    {
                        FUndoList.Redo();
                    }
                    finally
                    {
                        EndUpdate();
                    }
                }
                finally
                {
                    FUndoList.Enable = true;
                }
            }
        }
Exemplo n.º 2
0
        public override void Redo(HCCustomUndoAction aRedoAction)
        {
            if (aRedoAction is HCItemSelfUndoAction)
            {
                HCUndoList vUndoList = (aRedoAction as HCItemSelfUndoAction).Object as HCUndoList;
                if (vUndoList != null)
                {
                    if (vUndoList.Seek < 0)
                    {
                        SelfUndoListInitializate(vUndoList);
                    }

                    vUndoList.Redo();
                }
                else
                {
                    base.Redo(aRedoAction);
                }
            }
            else
            {
                base.Redo(aRedoAction);
            }
        }