static void Application_ThreadException(object sender, ThreadExceptionEventArgs e) { Little_Registry_Cleaner.CrashReporter ErrorDlg = new Little_Registry_Cleaner.CrashReporter(e.Exception); ErrorDlg.ShowDialog(); }
static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { Little_Registry_Cleaner.CrashReporter ErrorDlg = new Little_Registry_Cleaner.CrashReporter((Exception)e.ExceptionObject); ErrorDlg.ShowDialog(); }