Example #1
0
        private void ChangeToXiangxi(object sender, EventArgs e)
        {
            int num = zongmao1.change_xiangxi_machine_num;

            xiangxi1.Set_Machine_Num(num);
            ViewCaoZuo.Show_Form_In_Panel(xiangxi1, panel_subview);
        }
Example #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     //panel1.Controls.Clear();
     //mapconfig.Show();
     //panel1.Controls.Add(mapconfig);
     //ViewCaoZuo.Max_Form(mapconfig);
     ViewCaoZuo.Show_Form_In_Panel(mapconfig, panel1);
 }
Example #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     //panel1.Controls.Clear();
     //datashow.Show();
     //panel1.Controls.Add(datashow);
     //ViewCaoZuo.Max_Form(datashow);
     ViewCaoZuo.Show_Form_In_Panel(datashow, panel1);
 }
Example #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     //panel1.Controls.Clear();
     //usermangement.Show_View();
     //panel1.Controls.Add(usermangement);
     //ViewCaoZuo.Max_Form(usermangement);
     ViewCaoZuo.Show_Form_In_Panel(usermangement, panel1);
 }
Example #5
0
        private void init_view()
        {
            ViewCaoZuo.Object_Position(0.01, 0.01, 0.1, 0.9, treeView_main, this.Controls);
            ViewCaoZuo.Object_Position(0.12, 0.01, 0.8, 0.9, panel_subview, this.Controls);
            ViewCaoZuo.Object_Position(0.92, 0.01, 0.06, 0.04, button_close, this.Controls);
            ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);

            // 总貌的进去详细页面的事件
            zongmao1.EnterToXiangxi += new EventHandler(ChangeToXiangxi);
        }
Example #6
0
        private void treeView_main_AfterSelect(object sender, TreeViewEventArgs e)
        {
            string selected_text = treeView_main.SelectedNode.Text;

            switch (selected_text)
            {
            case "总貌1(1-6)":
                zongmao1.Set_Page(1);
                ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);
                break;

            case "总貌2(7-12)":
                zongmao1.Set_Page(2);
                ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);
                break;

            case "总貌3(13-18)":
                zongmao1.Set_Page(3);
                ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);
                break;

            case "总貌4(19-24)":
                zongmao1.Set_Page(4);
                ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);
                break;

            case "总貌5(25-30)":
                zongmao1.Set_Page(5);
                ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);
                break;

            case "总貌6(31-36)":
                zongmao1.Set_Page(6);
                ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);
                break;

            case "总貌7(37-42)":
                zongmao1.Set_Page(7);
                ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);
                break;

            case "总貌8(43-48)":
                zongmao1.Set_Page(8);
                ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);
                break;

            case "总貌9(49-54)":
                zongmao1.Set_Page(9);
                ViewCaoZuo.Show_Form_In_Panel(zongmao1, panel_subview);
                break;
            }
        }
Example #7
0
 public void kehu_Show()
 {
     panel1.Top    = (int)(this.Height * 0.1);
     panel1.Left   = 0;
     panel1.Width  = this.Width;
     panel1.Height = this.Height;
     ViewCaoZuo.Show_Form_In_Panel(showview, panel1);
     button1.Visible = false;
     button2.Visible = false;
     button3.Visible = false;
     button4.Visible = false;
     button5.Visible = false;
 }
Example #8
0
 private void button4_Click(object sender, EventArgs e)
 {
     ViewCaoZuo.Show_Form_In_Panel(showview, panel1);
 }
Example #9
0
 private void button5_Click(object sender, EventArgs e)
 {
     ViewCaoZuo.Show_Form_In_Panel(camconfig, panel1);
 }