示例#1
0
文件: Album.cs 项目: paukr/auremo
 public Album(Artist artist, string title, string date, string directory)
 {
     Artist = artist;
     Title = title;
     Date = date;
     Directory = directory;
 }
示例#2
0
 public GenreFilteredAlbum(Genre genre, Artist artist, string title, string date, string directory)
 {
     Genre = genre;
     Artist = artist;
     Title = title;
     Date = date;
 }
示例#3
0
文件: Database.cs 项目: paukr/auremo
        private Artist GetOrCreateArtist(string artist)
        {
            string key = artist ?? UnknownArtist;

            if (!Artists.ContainsKey(key))
            {
                Artists[key] = new Artist(key);
            }

            return Artists[key];
        }
示例#4
0
文件: Database.cs 项目: paukr/auremo
        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);
        }