public void changeToMovieView(GUIMovie movie)
 {
     view.infoGrid.Children.Remove(view.noMovie);
     lvM.setMovieDetails(movie);
     view.infoGrid.Children.Remove(current);
     Grid.SetColumn(lvM, 0);
     Grid.SetRow(lvM, 0);
     Grid.SetRowSpan(lvM, 2);
     view.infoGrid.Children.Add(lvM);
     current = lvM;
 }
 public void setMovieDetails(GUIMovie selectedMovie)
 {
     this.selectedMovie = selectedMovie;
     yearBox.Text = selectedMovie.year;
     movieTitleBox.Text = selectedMovie.title;
     plot.Text = selectedMovie.plot;
     originalTitle.Text = selectedMovie.originalTitle;
     imdbRating.Text = selectedMovie.imdbRating;
     runtime.Content = selectedMovie.runtime;
     imdbRatingDetails.Content = selectedMovie.imdbRating;
     imdbRatingDetails.Content = selectedMovie.imdbRatingVotes;
     top250.Content = selectedMovie.imdbTop250;
     seenCount.Content = selectedMovie.seenCount;
     lastSeen.Content = selectedMovie.lastSeen;
     metaReview.Content = selectedMovie.metacriticsReviewRating;
     metaUser.Content = selectedMovie.metacriticsUsersRating;
     metaReviewVotes.Content = selectedMovie.metacriticsReviewVotes;
     metaUserVotes.Content = selectedMovie.metacriticsUserVotes;
     tomatoe.Content = selectedMovie.tomatometer;
     tomatoeUser.Content = selectedMovie.rottenTomatoesAudience;
     tomatoeVotes.Content = selectedMovie.tomatometerVotes;
     tomatoeUserVotes.Content = selectedMovie.rottenTomatoesAudienceVotes;
     otherWins.Content = selectedMovie.otherWins;
     otherNom.Content = selectedMovie.otherNominations;
     weeksInCine.Content = selectedMovie.weeksInCinema;
     budget.Content = selectedMovie.budget;
     boxWorld.Content = selectedMovie.boxofficeWorldwide;
     boxAmerica.Content = selectedMovie.boxofficeAmerica;
     boxForeign.Content = selectedMovie.boxofficeForeign;
     firstWeekend.Content = selectedMovie.boxofficeFirstWeekend;
     rankFirstWeekend.Content = selectedMovie.rangFirstWeekend;
     string languageString = generateString(controller.loadLanguageList(selectedMovie.dbId));
     if (languageString.Equals(""))
     {
         language.Text = "No Languages";
     }
     else
     {
         language.Text = languageString;
     }
     string genreString = generateString(controller.loadGenreList(selectedMovie.dbId));
     if (genreString.Equals(""))
     {
         genres.Text = "No Genres";
     }
     else
     {
         genres.Text = genreString;
     }
     controller.loadStarsListToMovie(selectedMovie.dbId, selectedMovie.yearInt);
     controller.loadProductionListToMovie(selectedMovie.dbId, selectedMovie.yearInt);
     if (castExpander.IsExpanded)
     {
         controller.loadActorListToMovie(selectedMovie.dbId, selectedMovie.yearInt);
     }
     BitmapImage posterBitmap = new BitmapImage();
     posterBitmap.BeginInit();
     posterBitmap.UriSource = new Uri(PictureHandler.getMoviePosterPath(selectedMovie.dbId, PosterSize.PREVIEW));
     posterBitmap.EndInit();
     posterInfo.Source = posterBitmap;
 }
Beispiel #3
0
 private void loadMovieDetails(int movieID)
 {
     this.movieDetails = controller.getGUIMovie(movieID);
     setMovieDetails();
     controller.loadProductionListToMovie(movieID, movieDetails.yearInt);
     controller.loadStarsListToMovie(movieDetails.dbId, movieDetails.yearInt);
     controller.loadActorListToMovie(movieDetails.dbId, movieDetails.yearInt);
     loadSummerytab();
 }
Beispiel #4
0
 private void movieList_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     movieDetails = (GUIMovie)movieList.SelectedItem;
     controller.changeToMovieView((GUIMovie)movieList.SelectedItem);
     tabControl.SelectedIndex = 1;
 }