Example #1
0
 private void InvertSelectedImagesButton_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < ImagesListBox.Items.Count; i++)
     {
         ImagesListBox.SetItemChecked(i, !ImagesListBox.GetItemChecked(i));
     }
 }
Example #2
0
 private void UnselectAllImagesButton_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < ImagesListBox.Items.Count; i++)
     {
         ImagesListBox.SetItemChecked(i, false);
     }
 }
Example #3
0
 private void DeleteSelectedImagesButton_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < ImagesListBox.Items.Count;)
     {
         if (ImagesListBox.GetItemChecked(i))
         {
             ImagesListBox.Items.RemoveAt(i);
             Bitmaps.RemoveAt(i);
         }
         else
         {
             i++;
         }
     }
 }