Esempio n. 1
0
        public async void MakeQuery()
        {
            var cities = await AccuWeatherHelpers.GetCities(Query);

            Cities.Clear(); // make sure the ObservableCollection has no other things in from before
            foreach (var city in cities)
            {
                Cities.Add(city);
            }
        }
Esempio n. 2
0
 public async void GetCurrentConditions()
 {
     Query = string.Empty; // clears search bar for user
     Cities.Clear();       // clears List for user
     CurrentConditions = await AccuWeatherHelpers.GetCondition(SelectedCity.Key);
 }