Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }
Example #3
0
        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;
        }
Example #4
0
        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;
        }
Example #5
0
        public void SetBackgroundDrawableForDate(Drawable drawable, Date date)
        {
            var dateTime = CalendarHelper.ConvertDateToDateTime(date);

            _backgroundForDate.Add(dateTime, drawable);
        }
Example #6
0
 public void SetMaxDate(Date maxDate)
 {
     MaxDate = maxDate == null ? default(DateTime?) : CalendarHelper.ConvertDateToDateTime(maxDate);
 }
Example #7
0
        public void MoveToDate(Date date)
        {
            var dateTime = CalendarHelper.ConvertDateToDateTime(date);

            MoveToDate(dateTime);
        }
Example #8
0
        public void SetCalendarDate(Date date)
        {
            var dateTime = CalendarHelper.ConvertDateToDateTime(date);

            SetCalendarDate(dateTime);
        }
Example #9
0
        public void ClearTextColorForDate(Date date)
        {
            var dateTime = CalendarHelper.ConvertDateToDateTime(date);

            _colorTextForDate.Remove(dateTime);
        }
Example #10
0
        public void SetTextColorForDate(int resourceTextColor, Date date)
        {
            var dateTime = CalendarHelper.ConvertDateToDateTime(date);

            _colorTextForDate.Add(dateTime, resourceTextColor);
        }
Example #11
0
        public void ClearBackgroundDrawableForDate(Date date)
        {
            var dateTime = CalendarHelper.ConvertDateToDateTime(date);

            _backgroundForDate.Remove(dateTime);
        }