private bool BoldedDate(DateTime date)
{
// Convert date to a month mask
int monthMask = 1 << (date.Day - 1);
// Check the month bolded mask
if ((monthMask & _calendar.MonthlyBoldedDatesMask) != 0)
return true;
// Check the year bolded mask
if ((monthMask & _calendar.AnnuallyBoldedDatesMask[date.Month - 1]) != 0)
return true;
// Check the individual bolded date list
foreach (DateTime dt in _calendar.BoldedDatesList)
if (dt == date)
return true;
return false;
}