示例#1
0
        internal static DialogResult ShowErrorBox(Form form, String errorMessage, Exception exception, String culture)
        {
            LogUtil log = new LogUtil(MethodBase.GetCurrentMethod());

            log.errorLog(errorMessage, exception);

            ErrorOR errorBox = new ErrorOR(form, LanguageUtil.GetCurrentLanguageString("Exception", className, culture) + " " + Environment.NewLine + errorMessage + Environment.NewLine + LanguageUtil.GetCurrentLanguageString("CommandExecution", className, culture), exception, culture);

            return(errorBox.ShowDialog(form));
        }
示例#2
0
        internal static void ShowErrorBox(Form form, String errorMessage, Exception exception)
        {
            LogUtil log = new LogUtil(MethodBase.GetCurrentMethod());

            log.errorLog(errorMessage, exception);

            ErrorOR errorBox = new ErrorOR(form, LanguageUtil.GetCurrentLanguageString("Exception", className) + Environment.NewLine + errorMessage, exception);

            errorBox.ShowDialog(form);
        }