private void Window_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { APIXUWeatherRepository weather = new APIXUWeatherRepository(); City.Text = CityInput.Text; forecast = weather.GetWeatherData("91dd720e6e5c43d9843143858191302", GetBy.CityName, CityInput.Text, Days.Seven).forecast.forecastday.ToList(); InputToComponentCityNameDateAndTemperatur(); } }
static ApixuService() { apixu = new APIXUWeatherRepository(); }