public MainWindow() { InitializeComponent(); viewModel = new WeatherViewModel(); viewModel.DownloadWeather("Brno"); DataContext = viewModel; }
private void changeCity(object sender, System.EventArgs e) { viewModel.DownloadWeather(city.Text); }