Esempio n. 1
0
 private void FilterAnimeList()
 {
     AnimeList.Clear();
     MainAnimeList.ToList().ForEach(x =>
     {
         if (x.Title.ToLower().Contains(FilterText.ToLower()))
         {
             AnimeList.Add(x);
         }
     });
 }
Esempio n. 2
0
 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;
 }