Пример #1
0
        private void btnmethod_Click(object sender, EventArgs e)
        {
            if (GlobeVal.mysys.safe == true)
            {
                if (GlobeVal.mysys.AppUserLevel < 1)
                {
                    if (GlobeVal.mysys.language == 0)
                    {
                        MessageBox.Show("您的当前权限不够,请使用试验经理或管理员权限登录");
                    }
                    else
                    {
                        MessageBox.Show("Insufficient permissio to login system.");
                    }
                    return;
                }
            }
            TabControl b = ((TabControl)Application.OpenForms["FormMainLab"].Controls["tabcontrol1"]);

            ((SplitContainer)b.TabPages[1].Controls[0]).Panel2Collapsed = true;

            UserControlMain c = GlobeVal.FormmainLab.umain;;

            c.OpenMethod();

            b.SelectedIndex = 1;
        }
Пример #2
0
        private void btnmethod_Click(object sender, EventArgs e)
        {
            if (GlobeVal.myglobefile.safe == true)
            {
                if (GlobeVal.myglobefile.AppUserLevel < 1)
                {
                    MessageBox.Show("您的当前权限不够,请使用试验经理或管理员权限登录");
                    return;
                }
            }
            TabControl b = ((TabControl)Application.OpenForms["FormMainLab"].Controls["tabcontrol1"]);


            UserControlMain c = GlobeVal.FormmainLab.umain;;

            c.OpenMethod();

            b.SelectedIndex = 1;
        }