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); }
public SetFanartImageStrategy(IMovieMetadataService metadataService, IMovieSetViewModel movieSet) { _metadataService = metadataService; _movieSet = movieSet; }
public SetPosterImageStrategy(IMovieMetadataService metadataService, IMovieSetViewModel movieSet) { _metadataService = metadataService; _movieSet = movieSet; }