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); }
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); }