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