Beispiel #1
0
        /// <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();
        }
Beispiel #2
0
        /// <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();
        }