Exemple #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();
         }
     }
 }
        //当tabcontrol控件选择变化以后
        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            AdminCtrl ac = new AdminCtrl();

            switch (this.tabControl1.SelectedIndex)
            {
            case 0:
                dgvGetInfoT();
                break;
            }
        }
Exemple #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;
            }
        }
Exemple #4
0
 //当tabcontrol控件选择变化以后
 private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
 {
     AdminCtrl ac = new AdminCtrl();
     switch (this.tabControl1.SelectedIndex)
     {
         case 0:
             dgvGetInfoT();
             break;
     }
 }
Exemple #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;
     }
 }
Exemple #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;
     }
 }