/// <summary> /// Исключения потока /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { var formException = new FormException(e.Exception); formException.ShowDialog(); }
/// <summary> /// Необработанные исключения /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { var formException = new FormException((Exception)e.ExceptionObject); formException.ShowDialog(); }