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();
}