void RemoveSelecurrent(Track track) { if (CurrentTrack == track) { Stop(); if (!IsLoopOne) { PlayForward(); } } CurrentPlaylist.RemoveTrack(track); SelectedPlaylist.RemoveTrack(track); }
void RemoveInAllSongs(Track track) { if (CurrentTrack == track) { Stop(); if (!IsLoopOne) { PlayForward(); } } CurrentPlaylist.RemoveTrack(track); SelectedPlaylist.RemoveTrack(track); Updater.DeleteOneTrack(track); }
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); }
void RemoveSelecPL(Track track) { SelectedPlaylist.RemoveTrack(track); }