private void InvertSelectedImagesButton_Click(object sender, EventArgs e) { for (int i = 0; i < ImagesListBox.Items.Count; i++) { ImagesListBox.SetItemChecked(i, !ImagesListBox.GetItemChecked(i)); } }
private void UnselectAllImagesButton_Click(object sender, EventArgs e) { for (int i = 0; i < ImagesListBox.Items.Count; i++) { ImagesListBox.SetItemChecked(i, false); } }
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++; } } }