Example #1
0
 void RemoveSelecurrent(Track track)
 {
     if (CurrentTrack == track)
     {
         Stop();
         if (!IsLoopOne)
         {
             PlayForward();
         }
     }
     CurrentPlaylist.RemoveTrack(track);
     SelectedPlaylist.RemoveTrack(track);
 }
Example #2
0
 void RemoveInAllSongs(Track track)
 {
     if (CurrentTrack == track)
     {
         Stop();
         if (!IsLoopOne)
         {
             PlayForward();
         }
     }
     CurrentPlaylist.RemoveTrack(track);
     SelectedPlaylist.RemoveTrack(track);
     Updater.DeleteOneTrack(track);
 }
Example #3
0
        private void deleteSong()
        {
            if (SelectedSong == null)
            {
                MessageBox.Show("Selecteer een nummer.");
                return;
            }
            if (Player.Instance.CurrentSong == SelectedSong)
            {
                Player.Instance.stop();
            }

            DbManager dbCreator = new DbManager();

            dbCreator.deleteSongData(SelectedSong);

            File.Delete(SelectedSong.SongLocation);
            SelectedPlaylist.removeSong(SelectedSong);
        }
Example #4
0
 void RemoveSelecPL(Track track)
 {
     SelectedPlaylist.RemoveTrack(track);
 }