Exemplo n.º 1
0
        private void btn_Next_Click(object sender, EventArgs e)
        {
            switch (CtrlFlag)
            {
            case 0:
                CtrlView.GasometerConfig Ctrl0 = new CtrlView.GasometerConfig();
                panel1.Controls.Clear();
                panel1.Controls.Add(Ctrl0);
                Ctrl0.Dock    = DockStyle.Fill;
                btn_Next.Text = "下一步";
                break;

            case 1:
                //CreateOmterTab();
                CtrlView.EquipConfig Ctrl1 = new CtrlView.EquipConfig();
                panel1.Controls.Clear();
                panel1.Controls.Add(Ctrl1);
                Ctrl1.Dock = DockStyle.Fill;
                break;

            case 2:
                //CrateEquipTab();
                CtrlView.OmeterAndEquip Ctrl2 = new CtrlView.OmeterAndEquip();
                panel1.Controls.Clear();
                panel1.Controls.Add(Ctrl2);
                Ctrl2.Dock = DockStyle.Fill;
                break;

            case 3:
                //SaveOmterEquip();
                CtrlView.EquipAndAlg Ctrl3 = new CtrlView.EquipAndAlg();
                panel1.Controls.Clear();
                panel1.Controls.Add(Ctrl3);
                Ctrl3.Dock    = DockStyle.Fill;
                btn_Next.Text = "完成";
                break;

            case 4:
                //SaveEquipAlg();
                PictureBox picbox = new PictureBox();
                picbox.Dock     = DockStyle.Fill;
                picbox.SizeMode = PictureBoxSizeMode.StretchImage;
                picbox.Image    = Properties.Resources.liucheng;
                panel1.Controls.Clear();
                panel1.Controls.Add(picbox);
                btn_Next.Text = "再次配置";
                CtrlFlag      = -1;
                break;

            default:
                btn_Next.Text = "流程错误";

                break;
            }

            CtrlFlag = CtrlFlag + 1;
        }
Exemplo n.º 2
0
        private void btn_Next_Click(object sender, EventArgs e)
        {
            switch (CtrlFlag)
            {
                case 0:
                    CtrlView.GasometerConfig Ctrl0 = new CtrlView.GasometerConfig();
                    panel1.Controls.Clear();
                    panel1.Controls.Add(Ctrl0);
                    Ctrl0.Dock = DockStyle.Fill;
                    btn_Next.Text = "下一步";
                    break;
                case 1:
                    //CreateOmterTab();
                    CtrlView.EquipConfig Ctrl1 = new CtrlView.EquipConfig();
                    panel1.Controls.Clear();
                    panel1.Controls.Add(Ctrl1);
                    Ctrl1.Dock = DockStyle.Fill;
                    break;
                case 2:
                    //CrateEquipTab();
                    CtrlView.OmeterAndEquip Ctrl2 = new CtrlView.OmeterAndEquip();
                    panel1.Controls.Clear();
                    panel1.Controls.Add(Ctrl2);
                    Ctrl2.Dock = DockStyle.Fill;
                    break;
                case 3:
                    //SaveOmterEquip();
                    CtrlView.EquipAndAlg Ctrl3 = new CtrlView.EquipAndAlg();
                    panel1.Controls.Clear();
                    panel1.Controls.Add(Ctrl3);
                    Ctrl3.Dock = DockStyle.Fill;
                    btn_Next.Text = "完成";
                    break;
                case 4:
                    //SaveEquipAlg();
                    //CreatEquipTab(string ETabName,string Num)创建设备数据表
                    PictureBox picbox = new PictureBox();
                    picbox.Dock = DockStyle.Fill;
                    picbox.SizeMode = PictureBoxSizeMode.StretchImage;
                    picbox.Image=Properties.Resources.liucheng;
                    panel1.Controls.Clear();
                    panel1.Controls.Add(picbox);
                    btn_Next.Text = "再次配置";
                    CtrlFlag = -1;
                    break;
                default:
                    btn_Next.Text = "流程错误";

                    break;

            }

            CtrlFlag = CtrlFlag + 1;
        }