Ejemplo n.º 1
0
        public static void HandleException(IWin32Window owner, Exception ex)
        {
            AddExceptionAdvancedInformation(ex);
            var box = new Microsoft.SqlServer.MessageBox.ExceptionMessageBox()
            {
                Caption = Properties.Resources.MyAppHandleExceptionDefaultCaption,
                Message = ex,
                Beep    = true,
                Symbol  = ExceptionMessageBoxSymbol.Error,
            };

            box.Show(owner);
        } // HandleException
Ejemplo n.º 2
0
        } // RecorderLauncherPath

        #region HandleException methods

        public static void HandleException(Form owner, Exception ex)
        {
            BasicGoogleTelemetry.SendExtendedExceptionHit(ex);
            AddExceptionAdvancedInformation(ex);

            var box = new Microsoft.SqlServer.MessageBox.ExceptionMessageBox()
            {
                Caption = Properties.Texts.MyAppHandleExceptionDefaultCaption,
                Message = ex,
                Beep    = true,
                Symbol  = ExceptionMessageBoxSymbol.Error,
            };

            box.Show(owner);
        } // HandleException