Example #1
0
 private static void ShowDebugButton(ExceptionHandler exceptionDialog)
 {
     exceptionDialog.ShowDebugButton=true;
 }
Example #2
0
        /// <summary>
        /// ThreadExceptionEventHandler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public static void GlobalExceptionHandler(object sender, ThreadExceptionEventArgs e)
        {
            ExceptionInfo exceptionInfo=new ExceptionInfo(e.Exception);

            ExceptionHandler exceptionDialog=new ExceptionHandler(exceptionInfo);
            exceptionDialog.TitleText=string.Format("{0} hat ein Problem festgestellt und muss beendet werden. Klicken Sie auf \"Erweitert\", um sich detaillierte Informationen anzeigen zu lassen!", Application.ProductName);
            exceptionDialog.UnhandledException=true;
            exceptionDialog.ShowAppRestartCheckBox=true;
            exceptionDialog.ShowReportErrorLabel=true;

            exceptionDialog.SMTPServer="smtp.seeseekey.net";
            exceptionDialog.ToAdress="*****@*****.**";
            exceptionDialog.ToName="seeseekey";

            ShowDebugButton(exceptionDialog);
            exceptionDialog.ShowDialog();
        }