Пример #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();
         }
     }
 }
Пример #2
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;
     }
 }