示例#1
0
        private void AddAllFormsInControl()
        {
            ss          = new Forms.SystemSetting();
            ss.TopLevel = false;
            ss.Dock     = DockStyle.Fill;

            fd          = new Forms.Filterdata();
            fd.TopLevel = false;
            fd.Dock     = DockStyle.Fill;

            wp          = new Forms.Weekreport();
            wp.TopLevel = false;
            wp.Dock     = DockStyle.Fill;

            dc          = new Forms.Datachart();
            dc.TopLevel = false;
            dc.Dock     = DockStyle.Fill;

            monit          = new Forms.Monitor();
            monit.TopLevel = false;
            monit.Dock     = DockStyle.Fill;

            home          = new Forms.Home();
            home.TopLevel = false;
            home.Dock     = DockStyle.Fill;

            kz          = new Forms.Kongzhi();
            kz.TopLevel = false;
            kz.Dock     = DockStyle.Fill;

            panel_main.Controls.Add(home);
            //if (!Comm.IsServiced())
            //{
            //    MessageBox.Show("软件出现未知错误,无法运行,请联系软件提供商。程序将退出!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //    System.Environment.Exit(0);
            //}
        }
示例#2
0
文件: MainForm.cs 项目: wcgcw/Finder
        private void AddAllFormsInControl()
        {
            ss = new Forms.SystemSetting();
            ss.TopLevel = false;
            ss.Dock = DockStyle.Fill;

            fd = new Forms.Filterdata();
            fd.TopLevel = false;
            fd.Dock = DockStyle.Fill;

            wp = new Forms.Weekreport();
            wp.TopLevel = false;
            wp.Dock = DockStyle.Fill;

            dc = new Forms.Datachart();
            dc.TopLevel = false;
            dc.Dock = DockStyle.Fill;

            monit = new Forms.Monitor();
            monit.TopLevel = false;
            monit.Dock = DockStyle.Fill;

            home = new Forms.Home();
            home.TopLevel = false;
            home.Dock = DockStyle.Fill;

            kz = new Forms.Kongzhi();
            kz.TopLevel = false;
            kz.Dock = DockStyle.Fill;

            panel_main.Controls.Add(home);
            //if (!Comm.IsServiced())
            //{
            //    MessageBox.Show("软件出现未知错误,无法运行,请联系软件提供商。程序将退出!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //    System.Environment.Exit(0);
            //}
        }