private void UpdateAlbumListView(string theID) { LastAlbumId = theID; MusicFolder FolderContents = Subsonic.GetMusicDirectory(theID); lbAlbums.BeginUpdate(); lbAlbums.Items.Clear(); if (AlbumListHistory.Peek() != "Root") { lbAlbums.Items.Add(new MusicFolder("..", AlbumListHistory.Peek())); } foreach (MusicFolder mf in FolderContents.Folders) { lbAlbums.Items.Add(mf); } foreach (Song sg in FolderContents.Songs) { lbAlbums.Items.Add(sg); } lbAlbums.EndUpdate(); }
private static IEnumerable <Song> GetSongIds(string albumKey) { MusicFolder albumContens = Subsonic.GetMusicDirectory(albumKey); return(albumContens.Songs); }