private void InvertSelectionMenuItemClick(object sender, EventArgs e) { for (int i = 0; i < TracksListBox.Items.Count; i++) { TracksListBox.SetSelected(i, !TracksListBox.GetSelected(i)); } }
private void SelectAllMenuItemClick(object sender, EventArgs e) { if (TracksListBox.SelectionMode != SelectionMode.One) { for (int i = 0; i < TracksListBox.Items.Count; i++) { TracksListBox.SetSelected(i, true); } } }