Esempio n. 1
0
        internal static DialogResult ShowErrorProgramBox(Form form, String errorMessage, Exception exception)
        {
            String culture = LanguageUtil.GetReallyShortCulture(CultureInfo.CurrentCulture.Name);

            ErrorO errorBox = new ErrorO(form, LanguageUtil.GetCurrentLanguageString("FatalException", className, culture) + " " + Environment.NewLine + errorMessage + Environment.NewLine + LanguageUtil.GetCurrentLanguageString("ProgramExecution", className, culture), exception, culture);

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

            log.errorLog(errorMessage, exception);

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

            errorBox.ShowDialog(form);
        }
Esempio n. 3
0
        internal static void ShowErrorProgramBox(Form form, String errorMessage, Exception exception)
        {
            LogUtil log = new LogUtil(MethodBase.GetCurrentMethod());

            log.fatalLog(errorMessage, exception);

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

            errorBox.ShowDialog(form);
        }
Esempio n. 4
0
        internal static void ShowErrorProgramBox(Form form, String errorMessage, Exception exception)
        {
            LogUtil log = new LogUtil(MethodBase.GetCurrentMethod());

            log.fatalLog(errorMessage, exception);

            String culture = LanguageUtil.GetReallyShortCulture(CultureInfo.CurrentCulture.Name);

            ErrorO errorBox = new ErrorO(form, LanguageUtil.GetCurrentLanguageString("FatalException", className, culture) + " " + Environment.NewLine + errorMessage + Environment.NewLine + LanguageUtil.GetCurrentLanguageString("ProgramExecution", className, culture), exception, culture);

            errorBox.ShowDialog(form);
        }
Esempio n. 5
0
        internal static DialogResult ShowErrorBox(Form form, String errorMessage, Exception exception, String culture)
        {
            ErrorO errorBox = new ErrorO(form, LanguageUtil.GetCurrentLanguageString("Exception", className, culture) + " " + Environment.NewLine + errorMessage + Environment.NewLine + LanguageUtil.GetCurrentLanguageString("CommandExecution", className, culture), exception, culture);

            return(errorBox.ShowDialog(form));
        }