public static string DisplayText(ErrorManager errorManager) { string renderedText = ""; Dictionary <string, List <Error> > errorTypeDict = errorManager.ClassifyFileError(); List <Error> taffErrors = errorTypeDict[TaffKeywords.FILE_EXTENSION]; List <Error> cffErrors = errorTypeDict[CffKeywords.FILE_EXTENSION]; int numOfTaffErrors = taffErrors.Count; int numOfCffErrors = cffErrors.Count; int totalError = numOfCffErrors + numOfTaffErrors; renderedText += $"<h3>There are " + $"<span style=\" color: red \">{totalError}</span> errors" + $", where TAFF file has <span style=\" color: red \">{numOfTaffErrors}</span> errors and " + $"CFF file has <span style=\" color: red \">{numOfCffErrors}</span> errors</h3>"; renderedText += RenderErrorText(taffErrors, "ALLOCATION"); renderedText += RenderErrorText(cffErrors, "CONFIGURATION"); return(renderedText); }