예제 #1
0
파일: FrmLogin.cs 프로젝트: fancky2019/RABC
 private void GetUserRoles()
 {
     try
     {
         GlobalObject.UserRoles = _bll.GetUserRoles(new UserRolesVM {
             UserID = GlobalObject.User.ID
         });
         this.Hide();
         if (GlobalObject.FrmLogOn == null)
         {
             GlobalObject.FrmLogOn = this;
         }
         if (GlobalObject.FrmMain == null)
         {
             GlobalObject.FrmMain = new FrmMain();
         }
         else
         {
             GlobalObject.FrmMain.LoadMenus();
         }
         GlobalObject.FrmMain.Show();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.ToString(), "提示", MessageBoxButtons.OK);
     }
 }
예제 #2
0
 private void RequestUserRolesData()
 {
     try
     {
         gcUserRoles.DataSource = _bll.GetUserRoles(new UserRolesVM {
             UserID = 0
         });
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.ToString(), "提示", MessageBoxButtons.OK);
     }
 }