Exemple #1
0
        public List <EventFull> GetEventsFull(EventOptions options)
        {
            LoadEventsFull();

            List <EventFull> events = new List <EventFull>();

            foreach (var @event in eventsFull)
            {
                if (options.Test(@event))
                {
                    events.Add(new EventFull(@event));
                }
            }
            return(events);
        }
Exemple #2
0
        public List <EventBrief> GetEventsBrief(EventOptions options)
        {
            LoadEventsBrief();

            List <EventBrief> events = new List <EventBrief>();

            foreach (var @event in eventsBrief)
            {
                if (options.Test(@event))
                {
                    events.Add(new EventBrief(@event));
                }
            }
            return(events);
        }