Exemplo n.º 1
0
        public async void GetWeather()
        {
            if (SelectedCity.Key != null)
            {
                var weather = await WeatherAPI.GetWeatherInformationAsync(SelectedCity.Key);

                Weather.DailyForecasts.Clear();
                foreach (var item in weather.DailyForecasts)
                {
                    Weather.DailyForecasts.Add(item);
                }
            }
        }
        public async void GetWeather()
        {
            var city = SelectedResult.Description.Replace(" ", string.Empty);

            Result = await WeatherAPI.GetWeatherInformationAsync(city);
        }