Beispiel #1
0
        private void InstanceForm()
        {
            MeasuresForm = new MeasuresProjectForm()
            {
                CurrentBusiness = this.CurrentBusiness,
                Activitie       = this.Activitie,
                BusContainer    = this,
                TopLevelForm    = this.MainForm,
                FormBorderStyle = FormBorderStyle.None,
                Dock            = DockStyle.Fill,
                //设置为非顶级控
                TopLevel = false,
                //显示窗体
                Visible = true
            };

            FormList["措施项目"] = MeasuresForm;
            MeasuresForm.LoadControls();

            OtherProject = new OtherProjectForm(this.Activitie)
            {
                CurrentBusiness = this.CurrentBusiness,
                Activitie       = this.Activitie,
                BusContainer    = this,
                TopLevelForm    = this.MainForm,
                FormBorderStyle = FormBorderStyle.None,
                Dock            = DockStyle.Fill,
                //设置为非顶级控
                TopLevel = false,
                //显示窗体
                Visible = true
            };

            FormList["其他项目"] = OtherProject;
            OtherProject.LoadControls();
        }