protected override /*async*/ void OnStartup(StartupEventArgs e) { Bpr.BeepShort(); Current.DispatcherUnhandledException += UnhandledExceptionHndlr.OnCurrentDispatcherUnhandledException; Tracer.SetupTracingOptions("TypingWpf", AppTraceLevel_Warnng); base.OnStartup(e); #if _DEBUG await sw(); //MainVM.UpdateDoneTodo("Zoe", null); //DeadlockDemo.NoDeadlock(); //DeadlockDemo.Causes_A_Deadlock(); //Trace.WriteLine(LessonHelper.GetLesson(LessonType.Combinations, 1)); //LessonHelper.CodeGen(); //new xChartPoc().ShowDialog(); //IsoHelper.ListIsoFolders(); return; //new Vws.DbExplorer2().ShowDialog(); // new JsonToSqlMigrator().ShowDialog(); #else var mw = new MainWindow(); var vm = MainVM.Create(mw.cChart1); if (vm != null) { BindableBaseViewModel.ShowModalMvvmAsync(vm, mw); } else #endif Shutdown(); }