Exemplo n.º 1
0
        /// <summary>
        /// Creates a new <see cref="CalendarTimeScaleUnit"/>
        /// </summary>
        /// <param name="day"><see cref="CalendarDay"/> this unit belongs to</param>
        /// <param name="index">Index of the unit relative to the container day</param>
        /// <param name="hours">Hour of the unit</param>
        /// <param name="minutes">Minutes of the unit</param>
        internal CalendarTimeScaleUnit(CalendarDay day, int index, int hours, int minutes)
            : base(day.Calendar)
        {
            _day     = day;
            _index   = index;
            _hours   = hours;
            _minutes = minutes;

            _passingItems = new List <CalendarItem>();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new <see cref="CalendarRendererDayEventArgs"/> object
 /// </summary>
 /// <param name="original">Orignal object to copy basic paramters</param>
 /// <param name="day">Day to render</param>
 public CalendarRendererDayEventArgs(CalendarRendererEventArgs original, CalendarDay day)
     : base(original)
 {
     _day = day;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new event with the specified day
 /// </summary>
 /// <param name="day">Day of the event</param>
 public CalendarDayEventArgs(CalendarDay day)
 {
     _calendarDay = day;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new DayTop for the specified day
 /// </summary>
 /// <param name="day"></param>
 public CalendarDayTop(CalendarDay day)
     : base(day.Calendar)
 {
     _day          = day;
     _passingItems = new List <CalendarItem>();
 }