Exemplo n.º 1
0
        private void FormNew_Load(object sender, EventArgs e)
        {
            FormKuoXing f1 = new FormKuoXing();

            addSubForm(f1);
            tabControl1.SelectedIndex = 0;
        }
Exemplo n.º 2
0
        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (this.tabControl1.SelectedIndex)
            {
            case 0:
                FormKuoXing f1 = new FormKuoXing();
                addSubForm(f1);
                break;

            case 1:
                FormFoot f2 = new FormFoot();
                addSubForm(f2);
                break;

            case 2:
                FormWaistPos f3 = new FormWaistPos();
                addSubForm(f3);
                break;

            case 3:
                FormZheSangF f4 = new FormZheSangF();
                addSubForm(f4);
                break;

            case 4:
                FormZheSangB f5 = new FormZheSangB();
                addSubForm(f5);
                break;

            case 5:
                FormPocketB f6 = new FormPocketB();
                addSubForm(f6);
                break;

            case 6:
                FormPocketB f7 = new FormPocketB();
                addSubForm(f7);
                break;
            }
        }