Example #1
0
 private static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
 {
     // this one catches the exceptions in .NET
       ExceptionHandler eh = new ExceptionHandler();
       eh.InitializeWindow(Program.ProgramName, e.Exception, ErrorBaseUrl);
       eh.ShowDialog();
 }
Example #2
0
 static void Main()
 {
     if (Type.GetType("Mono.Runtime") != null)
     Mono = true;
       GlobalExceptionHandling();
       Application.EnableVisualStyles();
       Application.SetCompatibleTextRenderingDefault(false);
       try
       {
     Application.Run(new MainForm());
       }
       catch (Exception e)
       {
     // this one catches the exceptions in MONO
     ExceptionHandler eh = new ExceptionHandler();
     eh.InitializeWindow(Program.ProgramName, e, ErrorBaseUrl);
     eh.ShowDialog();
       }
 }