internal void ProcessHomeKey(bool shift)
{
switch (DisplayMode)
{
case CalendarMode.Month:
{
// REMOVE_RTM: Not all types of calendars start with Day1. If Non-Gregorian is supported check this:
DateTime? selectedDate = new DateTime(DisplayDateInternal.Year, DisplayDateInternal.Month, 1);
ProcessSelection(shift, selectedDate, null);
break;
}
case CalendarMode.Year:
{
DateTime selectedMonth = new DateTime(_selectedMonth.Year, 1, 1);
OnSelectedMonthChanged(selectedMonth);
break;
}
case CalendarMode.Decade:
{
DateTime? selectedYear = new DateTime(DateTimeHelper.DecadeOfDate(SelectedYear), 1, 1);
OnSelectedYearChanged(selectedYear);
break;
}
}
}