Ejemplo n.º 1
0
        public async Task MakeQueryAsync()
        {
            var cities = await AccuWeatherHelper.GetCities(Query);

            Cities.Clear();
            cities.ForEach(c => Cities.Add(c));
        }
Ejemplo n.º 2
0
        public async void MakeQuery()
        {
            var qCities = await AccuWeatherHelper.GetCities(Query);

            Cities.Clear();
            foreach (var item in qCities)
            {
                Cities.Add(item);
            }
        }
Ejemplo n.º 3
0
        public async void MakeQuery()
        {
            var cities = await AccuWeatherHelper.GetCities(Query);

            Cities.Clear();
            foreach (var city in cities)
            {
                Cities.Add(city);
            }
        }
Ejemplo n.º 4
0
        public async void GetCities()
        {
            var cities = await AccuWeatherHelper.GetCities(Context);

            Cities.Clear();
            foreach (City city in cities)
            {
                Cities.Add(city);
            }
        }
Ejemplo n.º 5
0
        public async void MakeQuery()
        {
            var cities = await AccuWeatherHelper.GetCities(Query);

            //make sure that cities are cleared
            Cities.Clear();
            foreach (var city in cities)
            {
                //add every single city to observable collection
                Cities.Add(city);
            }
        }
Ejemplo n.º 6
0
        //This will be executed when the user presses the search button.
        public async void  MakeQuery()
        {
            var cities = await AccuWeatherHelper.GetCities(Query);

            Cities.Clear();

            //Add the cities from the query to the observable collection.
            foreach (var city in cities)
            {
                Cities.Add(city);
            }
        }
Ejemplo n.º 7
0
 public async System.Threading.Tasks.Task MakeQueryAsync()
 {
     var cities = await AccuWeatherHelper.GetCities(Query);
 }
Ejemplo n.º 8
0
 public async void MakeQuery()
 {
     var cities = await AccuWeatherHelper.GetCities(Query);
 }