예제 #1
0
        void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
        {
            var          results      = JsonConvert.DeserializeObject <GeoSearch>(e.Result.ToString().Trim());
            CitiesLoaded eventHandler = success;

            if (eventHandler != null)
            {
                eventHandler(results);
            }
        }
예제 #2
0
 private void SaveCities(Task <IEnumerable <CityDTO> > newCities)
 {
     Cities = newCities.Result.ToArray();
     logger.Info($"Городов загружено : { Cities.Length }");
     CitiesLoaded?.Invoke();
 }
예제 #3
0
 private void SaveCities(Task <List <OsmCity> > newCities)
 {
     Cities = newCities.Result.ToArray();
     logger.Info($"Городов загружено : {Cities.Length}");
     CitiesLoaded?.Invoke();
 }