[Conditional("WINDOWS")] // can only display on windows, because WinForms is borked on other platforms for some mysterious reason internal static void ShowAllErrors() { if (errors.Count > 0) { var errorDump = new StringBuilder(String.Format("Encountered {0} errors while loading mods:\n\n\n", errors.Count)); for (int i = 0; i < errors.Count; i++) { errorDump.AppendLine(String.Format("[{0} of {1}] ", i + 1, errors.Count) + errors[i].ToString()); } var dialog = new ExceptionDialogForm(String.Format("{0} Error(s)", errors.Count), errorDump.ToString()); dialog.ShowDialog(); } }
protected virtual void ShowSystemException(string caption, string exceptionMessage) { ExceptionDialogForm.ShowMessage(caption, exceptionMessage); }