Esempio n. 1
0
 private void GetOpenWeaterDetails()
 {
     appId = ConfigurationManager.AppSettings["OpenWeather"];
     OpenWeather _weather = new OpenWeather(appId, SelectedCity.Name);
     string url = _weather.BuildUrl();
     OpenWeatherDetails weatherDetails = _weather.GetOpenWeatherDetails(url);
     _weatherDetails = weatherDetails;
     LoadOpenWeatherDates(weatherDetails);
 }
Esempio n. 2
0
 private string GetUrl(ref WeatherDetails _weather)
 {
     string Url = null;
     switch (SelectedWeatherSource)
     {
         case "Open Weather":
             appId = ConfigurationManager.AppSettings["OpenWeather"];
             _weather = new OpenWeather(appId, SelectedCity.Name);
             Url = _weather.BuildUrl();
             break;
         case "Yahoo":
             _weather = new YahooWeather(SelectedCity.Name);
             Url = _weather.BuildUrl();
             break;
     }
     return Url;
 }