Example #1
0
        private void RefreshWeather()
        {
            WeatherResponse weatherResponse = WeatherHelper.GetCurrentWeatherAsync(Weather);

            lblWeatherInfo.Text = weatherResponse.weather[0].description.ToUpper();
            lblTemperature.Text = weatherResponse.main.temp.ToString() + "°C";

            string weatherIconName = weatherResponse.weather[0].icon + "@2x.png";

            pBoxWeather.Load("http://openweathermap.org/img/wn/" + weatherIconName);
        }