Exemple #1
0
 public void ChangeCityWithAccountDefault(object sender, CityLocationEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.City))
     {
         LocationService.TransitCity t_city = mPage.SessionManager.LocationService.GetCityByTag(
             mPage.SessionManager.Ticket, e.City);
         if (t_city != null)
         {
             SelectLocation(sender, new LocationEventArgs(t_city));
         }
         else
         {
             mCity.Text = e.City;
         }
     }
     else
     {
         SelectLocation(sender, new LocationEventArgs(mPage.SessionManager.Account));
     }
 }
Exemple #2
0
 public LocationEventArgs(LocationService.TransitCity city)
     : this(city.Country, city.State, city.Name, string.Empty)
 {
 }