Пример #1
0
 public MainWindow()
 {
     InitializeComponent();
     viewModel = new WeatherViewModel();
     viewModel.DownloadWeather("Brno");
     DataContext = viewModel;
 }
Пример #2
0
 private void changeCity(object sender, System.EventArgs e)
 {
     viewModel.DownloadWeather(city.Text);
 }