Ejemplo n.º 1
0
 public void deleteForumPostCallback(DeleteForumPost_ReturnType returnData)
 {
     if (returnData.Success && (returnData.postID >= 0L))
     {
         ForumThreadInfoData data = (ForumThreadInfoData)this.threadArray[ThreadID];
         if (data != null)
         {
             foreach (ForumPostData data2 in data.forumPosts)
             {
                 if (data2.postID == returnData.postID)
                 {
                     data.forumPosts.Remove(data2);
                     this.addPosts();
                     break;
                 }
             }
         }
     }
 }
 public void deleteForumPostCallback(DeleteForumPost_ReturnType returnData)
 {
     if (returnData.Success && (returnData.postID >= 0L))
     {
         ForumThreadInfoData data = (ForumThreadInfoData) this.threadArray[ThreadID];
         if (data != null)
         {
             foreach (ForumPostData data2 in data.forumPosts)
             {
                 if (data2.postID == returnData.postID)
                 {
                     data.forumPosts.Remove(data2);
                     this.addPosts();
                     break;
                 }
             }
         }
     }
 }
Ejemplo n.º 3
0
 public void OurRemoteAsyncCallBack_DeleteForumPost(IAsyncResult ar)
 {
     RemoteAsyncDelegate_DeleteForumPost asyncDelegate = (RemoteAsyncDelegate_DeleteForumPost) ((AsyncResult) ar).AsyncDelegate;
     try
     {
         this.storeRPCresult(ar, asyncDelegate.EndInvoke(ar));
     }
     catch (Exception exception)
     {
         DeleteForumPost_ReturnType returnData = new DeleteForumPost_ReturnType();
         this.manageRemoteExpection(ar, returnData, exception);
     }
 }