Example #1
0
            internal bool OverlapsWith(CalendarDayEventView e)
            {
                if (events.Count == 0)
                    return false;

                return (this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate);
            }
Example #2
0
            internal bool OverlapsWith(CalendarDayEventView e)
            {
                if (events.Count == 0)
                {
                    return(false);
                }

                return(this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate);
            }
Example #3
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;
            }
Example #4
0
 internal bool CanAdd(CalendarDayEventView e)
 {
     foreach (CalendarDayEventView ev in events)
     {
         if (ev.OverlapsWith(e))
         {
             return(false);
         }
     }
     return(true);
 }
Example #5
0
        public static EKEvent getEvent(CalendarDayEventView theEventView)
        {
            EKEventStore store         = MyEventStore;
            var          calendarArray = store.Calendars;
            //Util.WriteLine ("Predicate");
            //var newNSDate = (NSDate)theEventView.endDate;
            //Console.WriteLine ("Date is: {0} {1} {2}", NSDate.Now.ToString (), ((NSDate) DateTime.Now).ToString (), DateTime.Now);
            NSPredicate predicate = store.PredicateForEvents(theEventView.nsStartDate, theEventView.nsEndDate, calendarArray);

            //Util.WriteLine ("Fetching Events");
            // Fetch all events that match the predicate.
            return(store.EventsMatching(predicate).Where(x => x.EventIdentifier == theEventView.eventIdentifier).FirstOrDefault());
        }
Example #6
0
 public MonthEventElement(CalendarDayEventView theEvent)
     : base("")
 {
     TheEvent = theEvent;
 }
Example #7
0
 internal void Add(CalendarDayEventView ev)
 {
     events.Add(ev);
     arrangeColumns();
 }
Example #8
0
 public bool OverlapsWith(CalendarDayEventView e)
 {
     return(this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate);
 }
Example #9
0
 internal void Add(CalendarDayEventView ev)
 {
     events.Add (ev);
     arrangeColumns ();
 }
Example #10
0
 public bool OverlapsWith(CalendarDayEventView e)
 {
     return (this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate);
 }
Example #11
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;
            }
Example #12
0
 internal bool CanAdd(CalendarDayEventView e)
 {
     foreach (CalendarDayEventView ev in events)
     {
         if (ev.OverlapsWith (e))
             return false;
     }
     return true;
 }