Esempio n. 1
0
        //--------------------------------------------------------------------------------------------------------
        public void getFullWeatherByCity(string city)
        {
            CurrentWeather CurrWeather;

            try
            {
                CurrWeather = wAPI.getWeather(city);
            }
            catch (WebException exc)
            {
                throw exc;
            }
            var Forcast = wAPI.getForcast(city);

            View.AddWeatherToList(new FullWeather
            {
                City        = Forcast.city.name,
                CurrWeather = CurrWeather,
                Forcast     = Forcast
            });
        }