Пример #1
0
 private void InvertSelectionMenuItemClick(object sender, EventArgs e)
 {
     for (int i = 0; i < TracksListBox.Items.Count; i++)
     {
         TracksListBox.SetSelected(i, !TracksListBox.GetSelected(i));
     }
 }
Пример #2
0
 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);
         }
     }
 }