示例#1
0
        void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            ExceptionWindow exWin = new ExceptionWindow();

            exWin.SetException(e.ExceptionObject as Exception);
            exWin.ShowDialog();
        }
示例#2
0
        public bool ShowException(Exception exception)
        {
            LastException = exception;
            WriteLog();
            ExceptionWindow = new ExceptionWindow();
            ExceptionWindow.SetException(LastException);
            var showDialog = ExceptionWindow.ShowDialog();

            return(showDialog != null && (bool)showDialog);
        }
 void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     ExceptionWindow exWin = new ExceptionWindow();
     exWin.SetException(e.ExceptionObject as Exception);
     exWin.ShowDialog();
 }