private void populateCalendar(int memberId) { List <DateTime> attendances = AttendanceDAO.getAllById(memberId); calendarAttendance.RemoveAllBoldedDates(); if (attendances.Count != 0) { foreach (var attendance in attendances) { calendarAttendance.AddBoldedDate(attendance); } } calendarAttendance.UpdateBoldedDates(); }