Ejemplo n.º 1
0
        private void OnPlaylistReceived(GetPlaylistResultData result)
        {
            IList <MultimediaItem> playlist = result.Playlist;

            PlaylistReceivedEventArgs eventArgs = new PlaylistReceivedEventArgs(playlist);

            PlaylistReceived(this, eventArgs);
        }
Ejemplo n.º 2
0
        public void RequestPlaylistUpdate()
        {
            IList <MultimediaItem> playlist = new List <MultimediaItem>();

            playlist.Add(new MultimediaItem(1, "song 1", 5));
            playlist.Add(new MultimediaItem(2, "song 2", 5));
            playlist.Add(new MultimediaItem(3, "song 3", 5));

            PlaylistReceivedEventArgs eventArgs = new PlaylistReceivedEventArgs(playlist);

            messageQueue.Post(() => PlaylistReceived(this, eventArgs));
        }
Ejemplo n.º 3
0
 private void OnPlaylistReceived(object sender, PlaylistReceivedEventArgs eventArgs)
 {
     UpdatePlaylist(eventArgs.Playlist);
 }