Beispiel #1
0
 public static void LoadMoviesByGenre(string genre)
 {
     DisplayMovies.Clear();
     foreach (Movie m in Status.ct.Movies.Where(x => x.Genre.Contains(genre)))
     {
         DisplayMovies.Add(m);
     }
 }
Beispiel #2
0
 public static void LoadPopularMovies()
 {
     DisplayMovies.Clear();
     foreach (Movie m in Status.ct.Movies.OrderBy(x => x.Rating).Reverse())
     {
         DisplayMovies.Add(m);
     }
 }
Beispiel #3
0
 public static void LoadNewMovies()
 {
     DisplayMovies.Clear();
     foreach (Movie m in Status.ct.Movies.OrderBy(x => x.Year).Reverse())
     {
         DisplayMovies.Add(m);
     }
 }
Beispiel #4
0
 public static void SearchMovie(string input)
 {
     DisplayMovies.Clear();
     foreach (Movie m in Status.ct.Movies.AsEnumerable().Where(m => m.Title.Contains(input, StringComparison.OrdinalIgnoreCase)).OrderBy(x => x.Rating))
     {
         DisplayMovies.Add(m);
     }
 }