Ejemplo n.º 1
0
        internal bool OverlapsWith(CalendarDayEventView e)
        {
            if (events.Count == 0)
            {
                return(false);
            }

            return(this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate);
        }
Ejemplo n.º 2
0
        internal void Add(CalendarDayEventView e)
        {
            if (e.Column != null)
            {
                throw new ApplicationException("This Event was already placed into a Column.");
            }

            events.Add(e);
            e.Column = this;
        }
Ejemplo n.º 3
0
 internal bool CanAdd(CalendarDayEventView e)
 {
     foreach (CalendarDayEventView ev in events)
     {
         if (ev.OverlapsWith(e))
         {
             return(false);
         }
     }
     return(true);
 }
Ejemplo n.º 4
0
 internal void Add(CalendarDayEventView ev)
 {
     events.Add(ev);
     arrangeColumns();
 }
Ejemplo n.º 5
0
 public bool OverlapsWith(CalendarDayEventView e)
 {
     return(this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate);
 }