protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            string cityName = "";
            if (NavigationContext.QueryString.TryGetValue("city", out cityName))
            {
                endAddress = MobicaAddresses.FindDetails(cityName);
            }
            else
            {
                MessageBox.Show("Choosen city does not exist in system: " + cityName);
            }

            createProgressIndicator();
            //znajdź współrzędne celu
            bmh.Geocode(endAddress.GetAddressAsString(), EndingPointReceived, 1);
        }
 public static void RemoveAddress(Address adr)
 {
     if (mobicaAddressList.Contains(adr))
         mobicaAddressList.Remove(adr);
 }
 public static void AddAddress(Address adr)
 {
     if (!mobicaAddressList.Contains(adr))
         mobicaAddressList.Add(adr);
 }