Exemple #1
0
        public void AddTrack(MediaBundle <Track> track)
        {
            Discs       = Math.Max(Discs, track.Media.DiscNumber);
            Duration    = Duration.Add(track.Media.Duration);
            ReleaseDate = Math.Max(ReleaseDate, track.Media.ReleaseDate);

            Tracks = CollectionExtensions.AddValueToCollection(Tracks, track);
            Genres = CollectionExtensions.AddValuesToCollection(Genres, track.Media.Genres);
        }
Exemple #2
0
 public void AddGenres(IEnumerable <Genre> genres)
 {
     Genres = CollectionExtensions.AddValuesToCollection(Genres, genres);
 }
Exemple #3
0
 public void AddArtists(IEnumerable <MediaBundle <Artist> > artists)
 {
     Artists = CollectionExtensions.AddValuesToCollection(Artists, artists);
 }