Esempio n. 1
0
 internal Album(string title, int year, SubGenre subGenre)
 {
     _title    = title;
     _year     = year;
     _genre    = null;
     _subGenre = subGenre;
 }
Esempio n. 2
0
        public void AddSubGenre(string subGenreTitle, string[] baseGenreTitles)
        {
            List <Genre> baseGenres = new List <Genre>();

            foreach (string baseGenreTitle in baseGenreTitles)
            {
                baseGenres.Add(_genres[baseGenreTitle]);
            }
            SubGenre newSubGenre = new SubGenre(subGenreTitle, baseGenres.ToArray());

            foreach (Genre baseGenre in baseGenres)
            {
                baseGenre.AddSubGenre(newSubGenre);
            }
            _subGenres.Add(subGenreTitle, newSubGenre);
        }