Exemple #1
0
 public void getParishFrontPageCallback(GetParishFrontPageInfo_ReturnType returnData)
 {
     if (returnData.Success)
     {
         StoredParishInfo info = (StoredParishInfo)this.parishList[returnData.parishID];
         if (info == null)
         {
             info = new StoredParishInfo();
             this.parishList[returnData.parishID] = info;
         }
         info.m_lastUpdateTime = DateTime.Now;
         info.lastReturnData   = returnData;
         if (this.currentParish == returnData.parishID)
         {
             m_userIDOnCurrent      = -1;
             this.electedLeaderID   = returnData.leaderID;
             this.electedLeaderName = returnData.leaderName;
             this.currentLeaderID   = returnData.leaderID;
             this.currentLeaderName = returnData.leaderName;
             if (this.currentLeaderID == RemoteServices.Instance.UserID)
             {
                 foreach (CustomSelfDrawPanel.ParishChatPanel panel in this.chatAreas)
                 {
                     panel.setAsSteward();
                 }
             }
             this.createParishWall(returnData.parishWallInfo);
         }
     }
     this.updateLeaderInfo();
 }
 public void OurRemoteAsyncCallBack_GetParishFrontPageInfo(IAsyncResult ar)
 {
     RemoteAsyncDelegate_GetParishFrontPageInfo asyncDelegate = (RemoteAsyncDelegate_GetParishFrontPageInfo) ((AsyncResult) ar).AsyncDelegate;
     try
     {
         this.storeRPCresult(ar, asyncDelegate.EndInvoke(ar));
     }
     catch (Exception exception)
     {
         GetParishFrontPageInfo_ReturnType returnData = new GetParishFrontPageInfo_ReturnType();
         this.manageRemoteExpection(ar, returnData, exception);
     }
 }
 public void getParishFrontPageCallback(GetParishFrontPageInfo_ReturnType returnData)
 {
     if (returnData.Success)
     {
         StoredParishInfo info = (StoredParishInfo) this.parishList[returnData.parishID];
         if (info == null)
         {
             info = new StoredParishInfo();
             this.parishList[returnData.parishID] = info;
         }
         info.m_lastUpdateTime = DateTime.Now;
         info.lastReturnData = returnData;
         if (this.currentParish == returnData.parishID)
         {
             m_userIDOnCurrent = -1;
             this.electedLeaderID = returnData.leaderID;
             this.electedLeaderName = returnData.leaderName;
             this.currentLeaderID = returnData.leaderID;
             this.currentLeaderName = returnData.leaderName;
             if (this.currentLeaderID == RemoteServices.Instance.UserID)
             {
                 foreach (CustomSelfDrawPanel.ParishChatPanel panel in this.chatAreas)
                 {
                     panel.setAsSteward();
                 }
             }
             this.createParishWall(returnData.parishWallInfo);
         }
     }
     this.updateLeaderInfo();
 }