Esempio n. 1
0
        [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();
            }
        }
Esempio n. 2
0
        internal static void Debug_ShowAllErrors()
        {
            #if LOADER_ERR_DLG
            if (errors.Count > 0)
            {
                StringBuilder 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();
            }
            #endif
        }