internal void OnDayClick(DateTime selectedDate)
{
Debug.Assert(DisplayMode == CalendarMode.Month, "DisplayMode should be Month!");
int i = DateTimeHelper.CompareYearMonth(selectedDate, DisplayDateInternal);
if (SelectionMode == CalendarSelectionMode.None)
{
LastSelectedDate = selectedDate;
}
if (i > 0)
{
OnNextClick();
}
else if (i < 0)
{
OnPreviousClick();
}
}