コード例 #1
0
 private void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     try
     {
         DataContext = _viewModel = new GatewayViewModel();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }           
 }
コード例 #2
0
 private void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     try
     {
         DataContext = _viewModel = new GatewayViewModel();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }