private static bool ForGroup(iCalVEvent ev, GroupId groupId) { return(ev.Description.Contains($"INFO3 {Groups[(int) groupId]}")); }
private static bool IsCurrentEvent(DateTime now, iCalVEvent ev) { return(ev.DTStart.Date == now.Date && ev.DTEnd.Date == now.Date && ev.DTStart.TimeOfDay <= now.TimeOfDay && ev.DTEnd.TimeOfDay >= now.TimeOfDay); }