Пример #1
0
 public bool OverlapsWith(CalendarDayEventView e)
 {
     return (BoxStart < e.BoxEnd && BoxEnd > e.startDate);
 }
Пример #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;
        }
Пример #3
0
 internal bool CanAdd(CalendarDayEventView e)
 {
     foreach (CalendarDayEventView ev in events) {
         if (ev.OverlapsWith (e))
             return false;
     }
     return true;
 }
Пример #4
0
        internal bool OverlapsWith(CalendarDayEventView e)
        {
            if (events.Count == 0)
                return false;

            return (BoxStart < e.BoxEnd && BoxEnd > e.startDate);
        }
Пример #5
0
 internal void Add(CalendarDayEventView ev)
 {
     events.Add (ev);
     ArrangeColumns ();
 }
Пример #6
0
 private void eventWasClicked(CalendarDayEventView theEvent)
 {
     if (!myScrollView.isMoving ()) {
         if (OnEventClicked != null)
             OnEventClicked (theEvent);
     }
 }
Пример #7
0
 public MonthEventElement(CalendarDayEventView theEvent)
     : base(theEvent.Title)
 {
     TheEvent = theEvent;
 }
Пример #8
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 ();
 }