protected override void OnExit(ExitEventArgs e) { base.OnExit(e); Global.Quit(); }
void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { Global.Quit(); }
public App() { DispatcherUnhandledException += App_DispatcherUnhandledException; Global.Init(); }