Beispiel #1
0
 protected override void OnStartup(StartupEventArgs e)
 {
     // First assign the MainWindow to the main form
     TMCleanerViewModel viewModel = new TMCleanerViewModel();
     MainWindow window = new MainWindow();
     window.DataContext = viewModel;
     Application.Current.MainWindow = window; // main win
     window.Show();
 }
Beispiel #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            // First assign the MainWindow to the main form
            TMCleanerViewModel viewModel = new TMCleanerViewModel();
            MainWindow         window    = new MainWindow();

            window.DataContext             = viewModel;
            Application.Current.MainWindow = window; // main win
            window.Show();
        }