Exemplo n.º 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();
 }
Exemplo n.º 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();
        }