Exemple #1
0
 /// <summary>
 /// Adds the specified <see cref="CalendarDayTop"/> as a passing one
 /// </summary>
 /// <param name="top"></param>
 internal void AddTopPassing(CalendarDayTop top)
 {
     if (!TopsPassing.Contains(top))
     {
         TopsPassing.Add(top);
     }
 }
Exemple #2
0
        /// <summary>
        /// Creates a new Day
        /// </summary>
        /// <param name="calendar">Calendar this day belongs to</param>
        /// <param name="date">Date of the day</param>
        /// <param name="index">Index of the day on the current calendar's view</param>
        internal CalendarDay(KryptonCalendar calendar, DateTime date, int index) : base(calendar)
        {
            _containedItems = new List <CalendarItem>();
            _calendar       = calendar;
            _dayTop         = new CalendarDayTop(this);
            _date           = date;
            _index          = index;

            UpdateUnits();
        }