public void OurRemoteAsyncCallBack_Chat_ReceiveText(IAsyncResult ar)
 {
     RemoteAsyncDelegate_Chat_ReceiveText asyncDelegate = (RemoteAsyncDelegate_Chat_ReceiveText) ((AsyncResult) ar).AsyncDelegate;
     try
     {
         this.storeRPCresult(ar, asyncDelegate.EndInvoke(ar));
     }
     catch (Exception exception)
     {
         Chat_ReceiveText_ReturnType returnData = new Chat_ReceiveText_ReturnType();
         this.manageRemoteExpection(ar, returnData, exception);
     }
 }
Esempio n. 2
0
 private void chat_ReceiveText_UserCallBack(Chat_ReceiveText_ReturnType returnData)
 {
     if (!base.Enabled)
     {
         base.Enabled = true;
     }
     if (returnData.Success)
     {
         if ((returnData.textList != null) && (returnData.textList.Count > 0))
         {
             if (RemoteServices.Instance.UserOptions.profanityFilter)
             {
                 foreach (Chat_TextEntry entry in returnData.textList)
                 {
                     entry.text = GameEngine.Instance.censorString(entry.text);
                 }
             }
             this.addText(returnData.textList);
             this.checkTime = 1;
             GameEngine.Instance.playInterfaceSound("ChatScreen_new_chat");
             if ((Form.ActiveForm != base.ParentForm) && Program.mySettings.NotifyChatUpdate)
             {
                 FlashWindow.Start(base.ParentForm);
             }
         }
         if (returnData.activeUsers != null)
         {
             this.splitUsersIntoRooms(returnData.activeUsers);
         }
     }
     this.checkTime++;
     if (this.checkTime >= 30)
     {
         this.checkTime = 30;
     }
     this.lastRequestTime = DateTime.Now;
     this.inSend = false;
     if (this.registeredRooms.Count > 0)
     {
         this.btnSend.Enabled = true;
     }
 }