Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static void GoToShips()
 {
     DAOTroops.GoToShips();
     Gloval.Database.CurrentView = Data.SITE_VIEW.TROOPS_SHIPS;
 }