protected override void OnStartup(StartupEventArgs e) { OSHelper.HandleDependencies(); base.OnStartup(e); AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledException; }