예제 #1
0
 //获取管理员列表结果回调
 private void GetManagerListResult(ResultModel result)
 {
     if (result.pack.Cmd != Cmd.CMD_ROLE_LIST)
     {
         return;
     }
     NetMessageManage.RemoveResultBlock(GetManagerListResult);
     System.Console.WriteLine("GetManagerListResult:" + result.pack);
     if (result.pack.Content.MessageType == 1)
     {
         this.Invoke(new RefreshUIHandle(delegate {
             SysManage.UpdateManagerData(result.pack.Content.ScRoleList.RolesList);
             managers = result.pack.Content.ScRoleList.RolesList;
             RefreshGridControl();
         }));
     }
 }