Пример #1
0
 public SongsContainer(Album album)
 {
     InitializeComponent();
     albumName.Text = album.Title;
     artistName.Text = album.Artist;
     ThreadPool.QueueUserWorkItem(SetupSongsContainer,album);
 }
Пример #2
0
 public SongsControl(Album album)
 {
     Init();
     var panel = new Panel { AutoScroll = true, Dock = DockStyle.Fill };
     Controls.Add(panel);
     var viewer = new SongViewer.SongViewer(album) { Dock = DockStyle.Fill };
     panel.Height = viewer.Height;
     panel.Controls.Add(viewer);
 }
Пример #3
0
 public AlbumCoverAndText(Album album)
 {
     InitializeComponent();
     albumCoverArt.BorderStyle = BorderStyle.FixedSingle;
     albumCoverArt.Album = album;
     albumCoverArt.Image = album.CoverArt(100);
     albumTitle.Text = album.Title;
     albumArtist.Text = album.Artist;
 }
Пример #4
0
 public SongsControl(Album album)
 {
     Init();
 }
Пример #5
0
 public SongViewer(Album album)
 {
     InitializeComponent();
     ThreadPool.QueueUserWorkItem(CreateSongContainerAlbum, album);
 }
Пример #6
0
 public static IList<Song> GetAlbumSongs(Album album)
 {
     return GetAlbumSongs(album.Id);
 }