public override void AddTracks()
 {
     //Popup the Playlist Chooser.
     PlaylistChooser chooser = new PlaylistChooser();
     chooser.Placement = PlacementMode.MousePoint;
     chooser.Closed += OnPlaylistChooserClosed;
     chooser.IsOpen = true;
 }
Example #2
0
        public override void AddTracks()
        {
            //Popup the Playlist Chooser.
            PlaylistChooser chooser = new PlaylistChooser();

            chooser.Placement = PlacementMode.MousePoint;
            chooser.Closed   += OnPlaylistChooserClosed;
            chooser.IsOpen    = true;
        }
Example #3
0
        public void OnPlaylistChooserClosed(object sender, EventArgs e)
        {
            PlaylistChooser chooser = (PlaylistChooser)sender;

            if (chooser.SelectedPlaylist != null)
            {
                AlbumTrackList albumTrackList = SpotifyClientService.Client.GetAlbumTracks(_newReleaseItem.Album);
                SpotifyClientService.Client.AddTracksToPlaylist(chooser.SelectedPlaylist, albumTrackList.Tracks);
            }
        }