void OnApplicationStartup(object sender, StartupEventArgs e) { DispatcherUnhandledException += App_DispatcherUnhandledException; var mainWindow = new MainWindow(); mainWindow.Show(); }
private void Application_Startup(object sender, StartupEventArgs e) { DispatcherUnhandledException += App_DispatcherUnhandledException; MainWindow mainWindow = new MainWindow(); mainWindow.Show(); }