コード例 #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);
        }
コード例 #2
0
 public SetFanartImageStrategy(IMovieMetadataService metadataService, IMovieSetViewModel movieSet)
 {
     _metadataService = metadataService;
     _movieSet        = movieSet;
 }
コード例 #3
0
 public SetPosterImageStrategy(IMovieMetadataService metadataService, IMovieSetViewModel movieSet)
 {
     _metadataService = metadataService;
     _movieSet = movieSet;
 }