Ejemplo n.º 1
0
        private void OnAddToNewPlaylist(object o, EventArgs args)
        {
            // TODO generate name based on the track selection, or begin editing it
            PlaylistSource playlist = new PlaylistSource("New Playlist", ActivePrimarySource);

            playlist.Save();
            playlist.PrimarySource.AddChildSource(playlist);
            ThreadAssist.SpawnFromMain(delegate {
                playlist.AddSelectedTracks(ActiveSource);
            });
        }
Ejemplo n.º 2
0
 private void AddToPlaylist(PlaylistSource playlist)
 {
     if (!FilterFocused)
     {
         playlist.AddSelectedTracks(ActiveSource);
     }
     else
     {
         playlist.AddAllTracks(ActiveSource);
     }
 }
Ejemplo n.º 3
0
 private void AddToPlaylist(PlaylistSource playlist)
 {
     if (!FilterFocused)
     {
         var track = ServiceManager.PlayerEngine.CurrentTrack as DatabaseTrackInfo;
         if (chosen_from_playing_track_submenu && track != null)
         {
             playlist.AddTrack(track);
         }
         else
         {
             playlist.AddSelectedTracks(ActiveSource);
         }
     }
     else
     {
         playlist.AddAllTracks(ActiveSource);
     }
 }