예제 #1
0
 public void chat_SendParishTextCallback(Chat_SendParishText_ReturnType returnData)
 {
     if (!this.chatAreas[this.lastTab].Locked)
     {
         this.textBox1.Enabled = true;
     }
     this.textBox1.Focus();
     if ((returnData.Success && (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.checkTextUpdateTime = 2;
         this.importText(returnData.textList, returnData.unreadIDs);
     }
 }
예제 #2
0
 public void OurRemoteAsyncCallBack_Chat_SendParishText(IAsyncResult ar)
 {
     RemoteAsyncDelegate_Chat_SendParishText asyncDelegate = (RemoteAsyncDelegate_Chat_SendParishText) ((AsyncResult) ar).AsyncDelegate;
     try
     {
         this.storeRPCresult(ar, asyncDelegate.EndInvoke(ar));
     }
     catch (Exception exception)
     {
         Chat_SendParishText_ReturnType returnData = new Chat_SendParishText_ReturnType();
         this.manageRemoteExpection(ar, returnData, exception);
     }
 }
 public void chat_SendParishTextCallback(Chat_SendParishText_ReturnType returnData)
 {
     if (!this.chatAreas[this.lastTab].Locked)
     {
         this.textBox1.Enabled = true;
     }
     this.textBox1.Focus();
     if ((returnData.Success && (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.checkTextUpdateTime = 2;
         this.importText(returnData.textList, returnData.unreadIDs);
     }
 }