public static void Run(string message, string cfgpath) { BadSettingsErrorForm win = new BadSettingsErrorForm(); win.tbxError.Text = message; win.m_cfgpath = cfgpath; win.ShowDialogEx(); }
public static void ShowErrorWindow(Exception e) { e = ExtractImportantException(e); if (e is BadSettingsError) { BadSettingsErrorForm.Run((BadSettingsError)e); } else if (e is ExpectedError) { StdDialog.ShowError(e.Message); } else { ErrorForm.Run(e, Logging.GetFeedbackLastLogEntries()); } }