public ObservableCollection<AnimeData> FilterByDate(AnimeDateTime date) { ObservableCollection<AnimeData> outputCollection = new ObservableCollection<AnimeData>(); foreach (AnimeData animeData in allAnimes) { if (date.StDateTime.Date == animeData.AnimeTime.StDateTime.Date) outputCollection.Add(animeData); } return outputCollection; }
public ObservableCollection <AnimeData> FilterByDate(AnimeDateTime date) { ObservableCollection <AnimeData> outputCollection = new ObservableCollection <AnimeData>(); foreach (AnimeData animeData in allAnimes) { if (date.StDateTime.Date == animeData.AnimeTime.StDateTime.Date) { outputCollection.Add(animeData); } } return(outputCollection); }