public void SetTextColorForDates(Dictionary <Date, int> colorTextForDateMap) { if (colorTextForDateMap == null || colorTextForDateMap.Count == 0) { return; } _colorTextForDate.Clear(); foreach (var item in colorTextForDateMap) { var dateTime = CalendarHelper.ConvertDateToDateTime(item.Key); _colorTextForDate.Add(dateTime, item.Value); } }
public void SetBackgroundDrawableForDates(Dictionary <Date, Drawable> backgroundForDateMap) { if (backgroundForDateMap == null || backgroundForDateMap.Count == 0) { return; } _backgroundForDate.Clear(); foreach (var item in backgroundForDateMap) { var dateTime = CalendarHelper.ConvertDateToDateTime(item.Key); _backgroundForDate.Add(dateTime, item.Value); } }
public void SetDisabledDate(List <Date> disableDates) { if (disableDates == null || disableDates.Count == 0) { return; } var dateTimes = new List <DateTime>(); foreach (var item in disableDates) { var dateTime = CalendarHelper.ConvertDateToDateTime(item); dateTimes.Add(dateTime); } DisabledDate = dateTimes; }
public void SetSelectedDate(List <Date> selectedDates) { if (selectedDates == null || selectedDates.Count == 0) { return; } var dateTimes = new List <DateTime>(); foreach (var item in selectedDates) { var dateTime = CalendarHelper.ConvertDateToDateTime(item); dateTimes.Add(dateTime); } SelectedDate = dateTimes; }
public void SetBackgroundDrawableForDate(Drawable drawable, Date date) { var dateTime = CalendarHelper.ConvertDateToDateTime(date); _backgroundForDate.Add(dateTime, drawable); }
public void SetMaxDate(Date maxDate) { MaxDate = maxDate == null ? default(DateTime?) : CalendarHelper.ConvertDateToDateTime(maxDate); }
public void MoveToDate(Date date) { var dateTime = CalendarHelper.ConvertDateToDateTime(date); MoveToDate(dateTime); }
public void SetCalendarDate(Date date) { var dateTime = CalendarHelper.ConvertDateToDateTime(date); SetCalendarDate(dateTime); }
public void ClearTextColorForDate(Date date) { var dateTime = CalendarHelper.ConvertDateToDateTime(date); _colorTextForDate.Remove(dateTime); }
public void SetTextColorForDate(int resourceTextColor, Date date) { var dateTime = CalendarHelper.ConvertDateToDateTime(date); _colorTextForDate.Add(dateTime, resourceTextColor); }
public void ClearBackgroundDrawableForDate(Date date) { var dateTime = CalendarHelper.ConvertDateToDateTime(date); _backgroundForDate.Remove(dateTime); }