//界面的初始化 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; }
//树形结构选择显示的站点 private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { //数据按站stationid定时刷新 if (treeView1.SelectedNode.Tag != null) { rz.rz_flowchart.stationid = Convert.ToInt32(treeView1.SelectedNode.Tag); } else { return; } if (this.checkChildFrmExist("流程图") == true) { return; } Form f = new rz.rz_flowchart(); f.MdiParent = this; f.Text = "流程图"; f.WindowState = FormWindowState.Maximized; f.Show(); }