Example #1
0
        static void Application_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            var ex = e.ExceptionObject as Exception;

            if (ex == null)
            {
                return;
            }

            UFMessage.Show(EnumDialogStyleType.Info, ex.Message);
        }
Example #2
0
 static void Application_ThreadException(object sender, ThreadExceptionEventArgs e)
 {
     UFMessage.Show(EnumDialogStyleType.Info, e.Exception.Message);
 }