Ejemplo n.º 1
0
 private void pictureBox13_Click(object sender, EventArgs e)
 {
     if (label3.Text != "")
     {
         panel6.Controls.Clear();
         Form10 s = new Form10(this);
         s.TopLevel        = false;
         s.Dock            = DockStyle.Fill;
         s.FormBorderStyle = FormBorderStyle.None;
         panel6.Controls.Add(s);
         s.Show();
     }
     else
     {
         MessageBox.Show("请选择工程号或者新建工程");
     }
 }
Ejemplo n.º 2
0
        private void treeView2_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Node.Text == "查看")
            {
                panel6.Controls.Clear();
                Form12 s = new Form12(this);
                s.TopLevel        = false;
                s.Dock            = DockStyle.Fill;
                s.FormBorderStyle = FormBorderStyle.None;
                panel6.Controls.Add(s);
                s.Show();
            }

            if (e.Node.Text == "新建")
            {
                Form4 Form = new Form4(this);
                Form.Show();
                Form.TopMost = true;
            }
            if (e.Node.Text == "基本信息")
            {
                panel6.Controls.Clear();
                Form2 s = new Form2(this);
                s.TopLevel        = false;
                s.Dock            = DockStyle.Fill;
                s.FormBorderStyle = FormBorderStyle.None;
                panel6.Controls.Add(s);
                s.Show();
            }
            if (e.Node.Text == "钻具组合")
            {
                panel6.Controls.Clear();
                Form5 s = new Form5(this);
                s.TopLevel        = false;
                s.Dock            = DockStyle.Fill;
                s.FormBorderStyle = FormBorderStyle.None;
                panel6.Controls.Add(s);
                s.Show();
            }
            if (e.Node.Text == "井轨数据")
            {
                panel6.Controls.Clear();
                Form6 s = new Form6(this);
                s.TopLevel        = false;
                s.Dock            = DockStyle.Fill;
                s.FormBorderStyle = FormBorderStyle.None;
                panel6.Controls.Add(s);
                s.Show();
            }

            if (e.Node.Text == "井轨数据")
            {
                panel6.Controls.Clear();
                Form6 s = new Form6(this);
                s.TopLevel        = false;
                s.Dock            = DockStyle.Fill;
                s.FormBorderStyle = FormBorderStyle.None;
                panel6.Controls.Add(s);
                s.Show();
            }

            if (e.Node.Text == "井身结构参数")
            {
                panel6.Controls.Clear();
                Form9 s = new Form9(this);
                s.TopLevel        = false;
                s.Dock            = DockStyle.Fill;
                s.FormBorderStyle = FormBorderStyle.None;
                panel6.Controls.Add(s);
                s.Show();
            }
            if (e.Node.Text == "溢流情况描述")
            {
                panel6.Controls.Clear();
                Form10 s = new Form10(this);
                s.TopLevel        = false;
                s.Dock            = DockStyle.Fill;
                s.FormBorderStyle = FormBorderStyle.None;
                panel6.Controls.Add(s);
                s.Show();
            }
            if (e.Node.Text == "计算")
            {
                Form8 Form = new Form8();
                Form.Show();
                Form.TopMost = true;
            }
        }