Exemple #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));
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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));
        }