Exemple #1
0
        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);
        }
Exemple #2
0
 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);
 }