Exemple #1
0
        private void AddMovieSet(IMovieViewModel movie)
        {
            string             setName  = movie.SetName.OriginalValue;
            IMovieSetViewModel movieSet = Movies.OfType <IMovieSetViewModel>().FirstOrDefault(m => m.DisplayName == setName);

            if (movieSet == null)
            {
                movieSet = _viewModelFactory.GetMovieSet(setName);
                Movies.Add(movieSet);
            }
            movieSet.AddMovie(movie);
        }
Exemple #2
0
 public SetFanartImageStrategy(IMovieMetadataService metadataService, IMovieSetViewModel movieSet)
 {
     _metadataService = metadataService;
     _movieSet        = movieSet;
 }
 public SetPosterImageStrategy(IMovieMetadataService metadataService, IMovieSetViewModel movieSet)
 {
     _metadataService = metadataService;
     _movieSet = movieSet;
 }