コード例 #1
0
        /// <summary>
        /// 加载业务及报表管理窗体
        /// </summary>
        /// <param name="selectedIndex"></param>
        private void CreateReportChildForm(int selectedIndex, SignSocketClient sc)
        {
            if (this.MdiChildren != null)
            {
                foreach (Form form in this.MdiChildren)
                {
                    if (form.Name == "ReportManage")
                    {
                        form.Close();
                    }
                }
            }
            ReportManage report = new ReportManage(selectedIndex, sc);

            report.MdiParent = this;
            report.Dock      = DockStyle.Fill;
            report.Show();
        }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: gatieme/SignPressClient
        /// <summary>
        /// 加载业务及报表管理窗体
        /// </summary>
        /// <param name="selectedIndex"></param>
        private void CreateReportChildForm(int selectedIndex,SignSocketClient sc)
        {
            if (this.MdiChildren != null)
            {
                foreach (Form form in this.MdiChildren)
                {
                    if (form.Name == "ReportManage")
                    {
                        form.Close();
                    }
                }
            }
            ReportManage report = new ReportManage(selectedIndex, sc);
            report.MdiParent = this;
            report.Dock = DockStyle.Fill;
            report.Show();

        }