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