internal Album(string title, int year, SubGenre subGenre) { _title = title; _year = year; _genre = null; _subGenre = subGenre; }
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); }