/// <summary> /// Remove a song from the party's playlist /// </summary> private void RemoveSong() { var index = PlaylistGridView.CurrentCell.RowIndex; if (index <= 0) { return; } _service.RemoveSongFromPartyPlaylist(_dataStorage.CurrentSelectedPartyId, _currentPlaylist[index]); }
private void DeleteBtn_Click(object sender, EventArgs e) { if (getSongsResultLB.SelectedIndex < 0) { return; } var selectedUri = _existingFullTrackPlaylist[getSongsResultLB.SelectedIndex]; //System.Diagnostics.Debug.WriteLine(partyID + " " + selectedUri); _service.RemoveSongFromPartyPlaylist(_dataStorage.CurrentSelectedPartyId, selectedUri); getSongsBtn_Click(sender, e); }