private static void CurrentDomainOnUnhandledException(object sender, UnhandledExceptionEventArgs unhandledExceptionEventArgs) { var ex = unhandledExceptionEventArgs.ExceptionObject as Exception; var fail = new UpdateFailed(ex); fail.ShowDialog(); }
private static void ApplicationOnThreadException(object sender, ThreadExceptionEventArgs threadExceptionEventArgs) { var ex = threadExceptionEventArgs.Exception; UpdateFailed fail = new UpdateFailed(ex); fail.ShowDialog(); }