示例#1
0
 private void OnGroupDeleteExec(int idx)
 {
     if (idx == 0)
     {
         ChatTools.ChatLoadDisplay(true);
         GameWebAPI.RespData_DeleteChatGroupLogic chatGroup            = null;
         GameWebAPI.DeleteChatGroupLogic          deleteChatGroupLogic = new GameWebAPI.DeleteChatGroupLogic();
         deleteChatGroupLogic.SetSendData = delegate(GameWebAPI.ReqData_DeleteChatGroupLogic param)
         {
             param.chatGroupId = ClassSingleton <ChatData> .Instance.CurrentChatInfo.groupId;
         };
         deleteChatGroupLogic.OnReceived = delegate(GameWebAPI.RespData_DeleteChatGroupLogic response)
         {
             chatGroup = response;
         };
         GameWebAPI.DeleteChatGroupLogic request = deleteChatGroupLogic;
         base.StartCoroutine(request.RunOneTime(delegate()
         {
             RestrictionInput.EndLoad();
             this.AfterDeleteChatGroup(chatGroup);
         }, delegate(Exception noop)
         {
             RestrictionInput.EndLoad();
         }, null));
     }
 }
示例#2
0
 private void AfterDeleteChatGroup(GameWebAPI.RespData_DeleteChatGroupLogic data)
 {
     if (ChatTools.CheckOnFLG(data.result))
     {
         this.UpdateJoinGroupData();
         CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(delegate(int i)
         {
             this.< ClosePanel > __BaseCallProxy0(false);
             CMD_ChatWindow.instance.ClosePanel(true);
             CMD_ChatTop.instance.GetUserChatGroupListExec();
         }, "CMD_ModalMessage", null) as CMD_ModalMessage;
         cmd_ModalMessage.Title = StringMaster.GetString("SystemConfirm");
         cmd_ModalMessage.Info  = StringMaster.GetString("ChatDeleteSuccess");
     }
 }