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); } }
public async void GetCurrentConditions() { Query = string.Empty; // clears search bar for user Cities.Clear(); // clears List for user CurrentConditions = await AccuWeatherHelpers.GetCondition(SelectedCity.Key); }