Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public void ClickCheckBox(object sender, RoutedEventArgs e)
 {
     CheckedGenres = Genre.CheckedGenres(Genres);
     NotifyPropertyChanged("FilteredMovies");
 }