//背景 private void show_background() { if (this.checkChildFrmExist("背景") == true) { return; } Form f = new background(); f.Text = "背景"; f.MdiParent = this; f.WindowState = FormWindowState.Maximized; f.Show(); }
//背景 private void pictureBox6_DoubleClick(object sender, EventArgs e) { if (this.checkChildFrmExist("背景") == true) { return; } Form f = new background(); f.Text = "背景"; f.MdiParent = this; f.WindowState = FormWindowState.Maximized; f.Show(); }
//界面的初始化 private void from_ini() { pictureBox6.Parent = pictureBox7; toolStrip1.Parent = pictureBox7; label6.Parent = pictureBox7; Form back = new background(); back.Text = "背景"; back.MdiParent = this; back.WindowState = FormWindowState.Maximized; back.Show(); Form f = new btGR.frmGisMain(); f.Text = "地理信息"; f.MdiParent = this; f.WindowState = FormWindowState.Maximized; f = new curve(); f.Text = "曲线"; f.MdiParent = this; f.WindowState = FormWindowState.Maximized; f = new branch(); f.Text = "管网图"; f.MdiParent = this; f.WindowState = FormWindowState.Maximized; f = new rz.rz_flowchart(); f.Text = "流程图"; f.MdiParent = this; f.WindowState = FormWindowState.Maximized; f = new rz.rz_main(); f.Text = "供热系统"; f.MdiParent = this; f.WindowState = FormWindowState.Maximized; }