Exemple #1
0
        private TupleList <string, string, string> GetPlaylist()
        {
            int count      = player.currentPlaylist.count;
            var collection = new TupleList <string, string, string>
            {
                { "Artist", "Album", "Title" }
            };


            for (int i = 0; i < count; i++)
            {
                collection.Add(player.currentPlaylist.Item[i].getItemInfo("Author"), player.currentPlaylist.Item[i].getItemInfo("Album"), player.currentPlaylist.Item[i].getItemInfo("Title"));
            }
            return(collection);
        }
Exemple #2
0
        private TupleList <string, string, string> GetCollection(string type, string value)
        {
            var playlist = player.mediaCollection.getByAttribute(type, value);

            int count      = playlist.count;
            var collection = new TupleList <string, string, string>
            {
                { "Artist", "Album", "Title" }
            };


            for (int i = 0; i < count; i++)
            {
                collection.Add(playlist.Item[i].getItemInfo("Author"), playlist.Item[i].getItemInfo("Album"), playlist.Item[i].getItemInfo("Title"));
            }
            return(collection);
        }