public void getCountryFrontPageInfoCallback(GetCountryFrontPageInfo_ReturnType returnData) { if (returnData.Success) { StoredCountryInfo info = (StoredCountryInfo) this.countryList[returnData.countryID]; if (info == null) { info = new StoredCountryInfo(); this.countryList[returnData.countryID] = info; } info.m_lastUpdateTime = DateTime.Now; info.lastReturnData = returnData; if (this.currentCountry == returnData.countryID) { 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.countryWallInfo); } } }
public void OurRemoteAsyncCallBack_GetCountryFrontPageInfo(IAsyncResult ar) { RemoteAsyncDelegate_GetCountryFrontPageInfo asyncDelegate = (RemoteAsyncDelegate_GetCountryFrontPageInfo) ((AsyncResult) ar).AsyncDelegate; try { this.storeRPCresult(ar, asyncDelegate.EndInvoke(ar)); } catch (Exception exception) { GetCountryFrontPageInfo_ReturnType returnData = new GetCountryFrontPageInfo_ReturnType(); this.manageRemoteExpection(ar, returnData, exception); } }
public void getCountryFrontPageInfoCallback(GetCountryFrontPageInfo_ReturnType returnData) { if (returnData.Success) { StoredCountryInfo info = (StoredCountryInfo)this.countryList[returnData.countryID]; if (info == null) { info = new StoredCountryInfo(); this.countryList[returnData.countryID] = info; } info.m_lastUpdateTime = DateTime.Now; info.lastReturnData = returnData; if (this.currentCountry == returnData.countryID) { 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.countryWallInfo); } } }