Ejemplo n.º 1
0
 private AdminCtrlArea aarea    = null; //区域代理面板
 private void adminPanel()
 {
     if (Global.user_vali.Equals("1"))
     {
         if (ac == null || ac.IsDisposed)
         {
             ac = new AdminCtrl();
             ac.ShowDialog();
         }
     }
     if (Global.user_vali.Equals("3"))
     {
         if (acer == null || acer.IsDisposed)
         {
             acer = new AdminCtrlProvince();
             acer.ShowDialog();
         }
     }
     if (Global.user_vali.Equals("4"))
     {
         if (acera == null || acera.IsDisposed)
         {
             acera = new AdminCtrlCity();
             acera.ShowDialog();
         }
     }
     if (Global.user_vali.Equals("5"))
     {
         if (aarea == null || aarea.IsDisposed)
         {
             aarea = new AdminCtrlArea();
             aarea.ShowDialog();
         }
     }
 }
Ejemplo n.º 2
0
        //当tabcontrol控件选择变化以后
        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            AdminCtrl ac = new AdminCtrl();

            switch (this.tabControl1.SelectedIndex)
            {
            case 0:
                dgvGetInfoT();
                break;
            }
        }
Ejemplo n.º 3
0
        //当tabcontrol控件选择变化以后
        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            AdminCtrl ac = new AdminCtrl();

            switch (this.tabControl1.SelectedIndex)
            {
            case 0:
                dgvGetInfoT();
                break;

            case 1:
                ac.MaximizeBox     = false;
                ac.FormBorderStyle = FormBorderStyle.FixedSingle;
                break;

            case 2:
                getGgT();
                break;
            }
        }
Ejemplo n.º 4
0
 //当tabcontrol控件选择变化以后
 private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
 {
     AdminCtrl ac = new AdminCtrl();
     switch (this.tabControl1.SelectedIndex)
     {
         case 0:
             dgvGetInfoT();
             break;
     }
 }
Ejemplo n.º 5
0
 private void adminPanel()
 {
     while (startTAdminInfoLB)
     {
         if (Global.user_vali.Equals("1"))
         {
             if (ac == null || ac.IsDisposed)
             {
                 ac = new AdminCtrl();
                 ac.ShowDialog();
             }
         }
         if (Global.user_vali.Equals("3"))
         {
             if (acer == null || acer.IsDisposed)
             {
                 acer = new AdminCtrlProvince();
                 acer.ShowDialog();
             }
         }
         if (Global.user_vali.Equals("4"))
         {
             if (acera == null || acera.IsDisposed)
             {
                 acera = new AdminCtrlCity();
                 acera.ShowDialog();
             }
         }
         if (Global.user_vali.Equals("5"))
         {
             if (aarea == null || aarea.IsDisposed)
             {
                 aarea = new AdminCtrlArea();
                 aarea.ShowDialog();
             }
         }
         startTAdminInfoLB = false;
     }
 }
Ejemplo n.º 6
0
 //当tabcontrol控件选择变化以后
 private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
 {
     AdminCtrl ac = new AdminCtrl();
     switch (this.tabControl1.SelectedIndex)
     {
         case 0:
             dgvGetInfoT();
             break;
         case 1:
             ac.MaximizeBox = false;
             ac.FormBorderStyle = FormBorderStyle.FixedSingle;
             break;
         case 2:
             getGgT();
             break;
     }
 }