public void OurRemoteAsyncCallBack_GetCountyFrontPageInfo(IAsyncResult ar) { RemoteAsyncDelegate_GetCountyFrontPageInfo asyncDelegate = (RemoteAsyncDelegate_GetCountyFrontPageInfo) ((AsyncResult) ar).AsyncDelegate; try { this.storeRPCresult(ar, asyncDelegate.EndInvoke(ar)); } catch (Exception exception) { GetCountyFrontPageInfo_ReturnType returnData = new GetCountyFrontPageInfo_ReturnType(); this.manageRemoteExpection(ar, returnData, exception); } }
public void getCountyFrontPageInfoCallback(GetCountyFrontPageInfo_ReturnType returnData) { if (returnData.Success) { StoredCountyInfo info = (StoredCountyInfo) this.countyList[returnData.countyID]; if (info == null) { info = new StoredCountyInfo(); this.countyList[returnData.countyID] = info; } info.m_lastUpdateTime = DateTime.Now; info.lastReturnData = returnData; if (this.currentCounty == returnData.countyID) { this.m_userIDOnCurrent = -1; this.currentLeaderID = returnData.leaderID; this.currentLeaderName = returnData.leaderName; this.updateLeaderInfo(); NumberFormatInfo nFI = GameEngine.NFI; switch (returnData.taxRate) { case 0: this.taxValue.Text = "0"; break; case 1: this.taxValue.Text = "x1"; break; case 2: this.taxValue.Text = "x2"; break; case 3: this.taxValue.Text = "x3"; break; case 4: this.taxValue.Text = "x4"; break; case 5: this.taxValue.Text = "x5"; break; case 6: this.taxValue.Text = "x6"; break; case 7: this.taxValue.Text = "x7"; break; case 8: this.taxValue.Text = "x8"; break; case 9: this.taxValue.Text = "x9"; break; } this.goldValue.Text = returnData.gold.ToString("N", nFI); this.createParishWall(returnData.countyWallInfo); } } }
public void getCountyFrontPageInfoCallback(GetCountyFrontPageInfo_ReturnType returnData) { if (returnData.Success) { StoredCountyInfo info = (StoredCountyInfo)this.countyList[returnData.countyID]; if (info == null) { info = new StoredCountyInfo(); this.countyList[returnData.countyID] = info; } info.m_lastUpdateTime = DateTime.Now; info.lastReturnData = returnData; if (this.currentCounty == returnData.countyID) { this.m_userIDOnCurrent = -1; this.currentLeaderID = returnData.leaderID; this.currentLeaderName = returnData.leaderName; this.updateLeaderInfo(); NumberFormatInfo nFI = GameEngine.NFI; switch (returnData.taxRate) { case 0: this.taxValue.Text = "0"; break; case 1: this.taxValue.Text = "x1"; break; case 2: this.taxValue.Text = "x2"; break; case 3: this.taxValue.Text = "x3"; break; case 4: this.taxValue.Text = "x4"; break; case 5: this.taxValue.Text = "x5"; break; case 6: this.taxValue.Text = "x6"; break; case 7: this.taxValue.Text = "x7"; break; case 8: this.taxValue.Text = "x8"; break; case 9: this.taxValue.Text = "x9"; break; } this.goldValue.Text = returnData.gold.ToString("N", nFI); this.createParishWall(returnData.countyWallInfo); } } }