public static DialogResult ShowExceptionDialog(Exception e, bool resumable) { ExceptionManager.Publish(e); try { StringBuilder errorMsg = new StringBuilder(String.Format(SR.ExceptionGeneralCritical, RssBanditApplication.GetLogFileName())); errorMsg.Append("\n" + e.Message); if (Application.MessageLoop && e.Source != null) { errorMsg.Append("\n@:" + e.Source); } return (MessageBox.Show(errorMsg.ToString(), SR.GUIErrorMessageBoxCaption, (resumable ? MessageBoxButtons.AbortRetryIgnore : MessageBoxButtons.OK), MessageBoxIcon.Stop)); } catch (Exception ex) { _log.Error("Critical exception in ShowExceptionDialog() ", ex); /* */ } return(DialogResult.Abort); }