public static void AutoRequestBuildings(Gadget gg) { DebuggingAndTracking.Debug.Logging("AutoRequestBuildings start"); //force update building int nCities = Gloval.Database.Account.Cities.Count(); //giảm dc 1 request if (Gloval.Database.CurrentCity == 0) { for (int i = 0; i < nCities; i++) { if (gg.bStopAutoRequest) { return; } BUSBuilding.requestBuilding(i); } } else { for (int i = nCities - 1; i >= 0; i--) { if (gg.bStopAutoRequest) { return; } BUSBuilding.requestBuilding(i); } } Gloval.bBuildingsOverviewIsNewData = true; DebuggingAndTracking.Debug.Logging("AutoRequestBuildings start"); }
public static void AutoRequestBuildings() { //force update building int nCities = BUSCity.Count(); for (int i = 0; i < nCities; i++) { BUSBuilding.ForceUpdate(i); } Gloval.bBuildingsOverviewIsNewData = true; }