private void GetYahooWeatherDetails() { YahooWeather _weather = new YahooWeather(SelectedCity.Name); string url = _weather.BuildUrl(); YahooWeatherDetails weatherDetails = _weather.GetYahooWeatherDetails(url); _weatherDetails = weatherDetails; LoadYahooWeatherDates(weatherDetails); }
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; }