示例#1
0
        Disk GetDiskInternal(string albumArtist, string albumName, int releaseYear, int diskNumber)
        {
            var album = GetAlbumInternal(albumArtist, albumName, releaseYear);


            lock (m_Lock)
            {
                if (!album.DiskExists(diskNumber))
                {
                    var disk = new Disk
                    {
                        Album = album,
                        DiskNumber = diskNumber
                    };
                    album.AddDisk(disk);
                }

                return album.GetDisk(diskNumber);
            }
        }
示例#2
0
 public void AddDisk(Disk disk)
 {
     m_Disks.Add(disk.DiskNumber, disk);    
 }