示例#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);
 }