public static void ShowErrorMessage(CompError c) { string errorMessage = "Line " + c.lineNumber + ", Char " + c.characterNumber + ": " + c.fullLine + Environment.NewLine; errorMessage += String.Format(ErrorMessages[c.errorMessage], c.extraInfo1, c.extraInfo2); MessageBox.Show(errorMessage, "Error", MessageBoxButtons.OK); }