Esempio n. 1
0
        private bool HasNext(CalendarEvent current)
        {
            var nextItem = db.CalendarEvents.AsEnumerable().FirstOrDefault(i => i.CalendaryOrder > current.CalendaryOrder);

            return nextItem != null;
        }
Esempio n. 2
0
        private bool HasPrev(CalendarEvent current)
        {
            var prevItem = db.CalendarEvents.AsEnumerable().LastOrDefault(i => i.CalendaryOrder < current.CalendaryOrder);

            return prevItem != null;
        }
Esempio n. 3
0
        private CalendarEvent GetPrev(CalendarEvent current)
        {
            var prevItem = db.CalendarEvents.AsEnumerable().LastOrDefault(i => i.CalendaryOrder < current.CalendaryOrder);

            return prevItem;
        }