private void button2_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex >= 0) { myPlaylist.PlaylistRemoveByIndex(listBox1.SelectedIndex, 0); updateList(); } }
void RemoveAll() { m_objMPlaylist.PlaylistRemoveByIndex(0, -1); finish = false; checkBox1.Checked = finish; list.Items.Clear(); UpdateList(); }
/// <summary> /// Synchronize MPlaylist with DataGridView when files are removed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dataGridViewFiles_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e) { m_objPlaylist.PlaylistRemoveByIndex(e.RowIndex, 0); updateList(); }