Exemplo n.º 1
0
        protected void DoRedo(HCUndo sender)
        {
            if (sender is HCEditUndo)
            {
                FHScrollBar.Position = (sender as HCEditUndo).HScrollPos;
                FVScrollBar.Position = (sender as HCEditUndo).VScrollPos;
            }
            else
            if (sender is HCUndoEditGroupBegin)
            {
                FHScrollBar.Position = (sender as HCUndoEditGroupBegin).HScrollPos;
                FVScrollBar.Position = (sender as HCUndoEditGroupBegin).VScrollPos;
            }

            HCUndoList vUndoList = DoGetUndoList();

            if (!vUndoList.GroupWorking)
            {
                HCFunction vEvent = delegate()
                {
                    FData.Redo(sender);
                    return(true);
                };

                DataChangeByAction(vEvent);
            }
            else
            {
                FData.Redo(sender);
            }
        }
Exemplo n.º 2
0
        protected bool DataChangeByAction(HCFunction aFun)
        {
            bool Result = aFun();

            DoChange();
            return(Result);
        }
Exemplo n.º 3
0
        public bool InsertDomain(HCDomainItem aMouldDomain)
        {
            HCFunction vEvent = delegate()
            {
                return(FData.InsertDomain(aMouldDomain));
            };

            return(DataChangeByAction(vEvent));
        }
Exemplo n.º 4
0
        public bool InsertItem(int aIndex, HCCustomItem aItem)
        {
            HCFunction vEvent = delegate()
            {
                return(FData.InsertItem(aIndex, aItem));
            };

            return(DataChangeByAction(vEvent));
        }
Exemplo n.º 5
0
        public bool InsertText(string text)
        {
            HCFunction vEvent = delegate()
            {
                return(FData.InsertText(text));
            };

            return(DataChangeByAction(vEvent));
        }
Exemplo n.º 6
0
        public bool InsertTable(int aRowCount, int aColCount)
        {
            HCFunction vEvent = delegate()
            {
                HCRichData vTopData = FData.GetTopLevelData() as HCRichData;
                return(vTopData.InsertTable(aRowCount, aColCount));
            };

            return(DataChangeByAction(vEvent));
        }