Exemple #1
0
        private void 更新引用ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HCViewData   vTopData  = FEmrView.ActiveSectionTopLevelData() as HCViewData;
            HCDomainInfo vDomain   = vTopData.ActiveDomain;
            HCViewData   vPageData = FEmrView.ActiveSection.Page;

            string vText = "";

            if (vTopData == vPageData)
            {
                vText = FEmrView.GetDataForwardDeGroupText(vPageData, vDomain.BeginNo);
            }
            else
            {
                vText = "";
            }

            if (vText != "")
            {
                FEmrView.BeginUpdate();
                try
                {
                    FEmrView.SetDeGroupText(vTopData, vDomain.BeginNo, vText);
                    FEmrView.FormatSection(FEmrView.ActiveSectionIndex);
                }
                finally
                {
                    FEmrView.EndUpdate();
                }
            }
        }