internal bool OverlapsWith(CalendarDayEventView e) { if (events.Count == 0) return false; return (this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate); }
internal bool OverlapsWith(CalendarDayEventView e) { if (events.Count == 0) { return(false); } return(this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate); }
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; }
internal bool CanAdd(CalendarDayEventView e) { foreach (CalendarDayEventView ev in events) { if (ev.OverlapsWith(e)) { return(false); } } return(true); }
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()); }
public MonthEventElement(CalendarDayEventView theEvent) : base("") { TheEvent = theEvent; }
internal void Add(CalendarDayEventView ev) { events.Add(ev); arrangeColumns(); }
public bool OverlapsWith(CalendarDayEventView e) { return(this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate); }
internal void Add(CalendarDayEventView ev) { events.Add (ev); arrangeColumns (); }
public bool OverlapsWith(CalendarDayEventView e) { return (this.BoxStart < e.BoxEnd && this.BoxEnd > e.startDate); }
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; }
internal bool CanAdd(CalendarDayEventView e) { foreach (CalendarDayEventView ev in events) { if (ev.OverlapsWith (e)) return false; } return true; }