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); }
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; }