예제 #1
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     MainWindow window = new MainWindow(); /*Instantiate the main window*/
     ServiceInjector.InjectServices(); /*Inject Services into the application*/
     ViewModelBase mainViewModel = new MainWindowViewModel();
     window.DataContext = mainViewModel;
     window.Show();
 }
예제 #2
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     MainWindow window = new MainWindow();
     ServiceInjector.InjectServices();
     ViewModelBase mainViewModel = new MainWindowViewModel();
     window.DataContext = mainViewModel;
     window.Show();
 }