// Returns a list of selected time periods private List <TimePeriod> GetSelectedTimePeriods() { var filtered = TimePeriods.FindAll((tp) => tp.IsChecked).ConvertAll((tp) => tp.TimePeriod); return(filtered); }