public static void ForceUpdateShips(int iIndexCity) { BUSCity.ChangeCityTo(iIndexCity, true); if (Gloval.Database.CurrentView != Data.SITE_VIEW.TROOPS_SHIPS) { if (Gloval.Database.CurrentView != Data.SITE_VIEW.TROOPS) { if (Gloval.Database.CurrentView != Data.SITE_VIEW.CITY) { DAOCity.GoToCity(); } //nhảy vào trang troops DAOTroops.GoToTroops(); } DAOTroops.GoToShips(); } Gloval.Database.Account.Cities[iIndexCity].DTTroopShips = DateTime.Now; //lấy thông tin DAOTroops.GetShipss(iIndexCity); }
public static void GoToShips() { DAOTroops.GoToShips(); Gloval.Database.CurrentView = Data.SITE_VIEW.TROOPS_SHIPS; }