PdfRpt.Calendar.MonthCalendar.getCellDescription C# (CSharp) Method

getCellDescription() private method

private getCellDescription ( PdfRpt.Calendar.MonthTableCell cell ) : string
cell PdfRpt.Calendar.MonthTableCell
return string
        private string getCellDescription(MonthTableCell cell)
        {
            if (CalendarData.MonthDaysInfo == null || !CalendarData.MonthDaysInfo.Any())
                return string.Empty;

            var daysInfo = CalendarData.MonthDaysInfo.Where(x => x.DayNumber == cell.DayNumber).ToList();
            if (!daysInfo.Any())
                return string.Empty;

            var text = new StringBuilder();
            foreach (var day in daysInfo)
            {
                if (day.ShowDescriptionInFooter)
                    _footerText.AppendLine(day.DayNumber + " " + _monthName + ": " + day.Description);
                else
                    text.AppendLine(day.Description);
            }
            return text.ToString();
        }