public MovieIndex() { InitializeComponent(); Movies = wnd.Movies; Genres = wnd.MovieGenres; WatchedFilter = wnd.WatchedFilter; Sort = wnd.Sort; DataContext = this; LoadMovies(); CheckedGenres = Genre.CheckedGenres(Genres); if (wnd.MovieToShow != null) { lvMovies.ScrollIntoView(wnd.MovieToShow); } SetCurrentFilters(); }
public ShowIndex() { InitializeComponent(); ShowType = (wnd.ShowType == "TV" ? "TV Shows" : "Anime"); Shows = (wnd.ShowType == "TV" ? wnd.TV : wnd.Anime); Genres = (wnd.ShowType == "TV" ? wnd.TVGenres : wnd.AnimeGenres); WatchedFilter = wnd.WatchedFilter; Sort = wnd.Sort; AiringFilter = wnd.AiringFilter; DataContext = this; LoadShows(); CheckedGenres = Genre.CheckedGenres(Genres); if (wnd.ShowToShow != null) { lvShows.ScrollIntoView(wnd.ShowToShow); } SetCurrentFilters(); }
public void ClickCheckBox(object sender, RoutedEventArgs e) { CheckedGenres = Genre.CheckedGenres(Genres); NotifyPropertyChanged("FilteredMovies"); }