public Album(Artist artist, string title, string date, string directory) { Artist = artist; Title = title; Date = date; Directory = directory; }
public GenreFilteredAlbum(Genre genre, Artist artist, string title, string date, string directory) { Genre = genre; Artist = artist; Title = title; Date = date; }
private Artist GetOrCreateArtist(string artist) { string key = artist ?? UnknownArtist; if (!Artists.ContainsKey(key)) { Artists[key] = new Artist(key); } return Artists[key]; }
private void AddArtistExpansion(Artist parent, Album child) { if (!m_ArtistExpansion.ContainsKey(parent)) { m_ArtistExpansion[parent] = new SortedSet<Album>(m_AlbumSortRule); } m_ArtistExpansion[parent].Add(child); }