static void Application_UnhandledException(object sender, UnhandledExceptionEventArgs e) { var ex = e.ExceptionObject as Exception; if (ex == null) { return; } UFMessage.Show(EnumDialogStyleType.Info, ex.Message); }
static void Application_ThreadException(object sender, ThreadExceptionEventArgs e) { UFMessage.Show(EnumDialogStyleType.Info, e.Exception.Message); }