예제 #1
0
 public FrmArrowOperate(DesignSectionList pSectionList)
 {
     InitializeComponent();
     _SectionList = pSectionList;
     //让窗口在最顶层
     DIYReport.PublicFun.SetWindowPos(this.Handle, -1, 0, 0, 0, 0, 3);
 }
예제 #2
0
        /// <summary>
        /// 显示方向盘控制窗口
        /// </summary>
        /// <param name="pControlList"></param>
        /// <param name="pParent"></param>
        /// <returns></returns>
        public static void ShowArrowForm(DesignSectionList pSectionList, Form pParent)
        {
            bool b = false;

            foreach (Form frm in pParent.OwnedForms)
            {
                if (frm.Name == "FrmArrowOperate")
                {
                    b = true;
                    frm.Show();
                    break;
                }
            }
            if (!b)
            {
                FrmArrowOperate frm = new FrmArrowOperate(pSectionList);
                pParent.AddOwnedForm(frm);
                frm.Show();
            }
        }
예제 #3
0
        //重新布置和创建一个新的报表设计
        private void iniNewReportDesign()
        {
            if (_DataObj != null)
            {
                if (_SectionList != null)
                {
                    foreach (DesignSection section in _SectionList)
                    {
                        panDesign.Controls.Remove(section.CaptionCtl);
                        panDesign.Controls.Remove(section);
                    }
                }
                _DataObj.AfterValueChanged += new DIYReport.ReportModel.RptEventHandler(_DataObj_AfterValueChanged);
                _SectionList = new DesignSectionList(this);
                _SectionList.BeforeRemoveSection += new DesignSectionEventHandler(_SectionList_BeforeRemoveSection);
                _SectionList.AfterInsertSection  += new DesignSectionEventHandler(_SectionList_AfterInsertSection);
                _SectionList.AfterRefreshLayout  += new DesignSectionEventHandler(_SectionList_AfterRefreshLayout);
                _SectionList.CreateNewSectionList();

                CreateDesignSection();
                DIYReport.UserDIY.DesignEnviroment.CurrentReport = _DataObj;
            }
        }