private static void HandleAppDomainError(object sender, UnhandledExceptionEventArgs ea) { RegisterApplicationError("General application error.", "General application error. See log file for error trace details.", ea.ExceptionObject as Exception); if (ea.IsTerminating) { ProgramRuntime.Shutdown(); } }
private static void RegisterApplicationError(string title, string message, Exception e) { ProgramRuntime.ShowErrorMessage(message, e); }