private void FilterAnimeList() { AnimeList.Clear(); MainAnimeList.ToList().ForEach(x => { if (x.Title.ToLower().Contains(FilterText.ToLower())) { AnimeList.Add(x); } }); }
private async void RefreshAiringAnimes() { Loading = Visibility.Visible; MainAnimeList.Clear(); AnimeList.Clear(); (await animeListManager.GetAiringScheduleAsync(MALParser.ScheduleDay.Any)).Animes.ForEach(x => { var item = new AnimeViewModel(new Anime() { Title = x.Title }); MainAnimeList.Add(item); }); FilterAnimeList(); Loading = Visibility.Hidden; }