コード例 #1
0
 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();
     }
 }
コード例 #2
0
 private static void RegisterApplicationError(string title, string message, Exception e)
 {
     ProgramRuntime.ShowErrorMessage(message, e);
 }