if (productListBox.SelectedIndex >= 0)
{
bool canDelete = true;
for (int i = 0; i < bkmNameListBox.Items.Count; i++)
{
if (((string[])bkmList[i])[1] == _IgnoredBKMID)
{
canDelete = false;
}
}
if (canDelete)
{
if (MessageBox.Show("Deleting a product will DELETE ALL debug BKM of this particular product,\r\n Continue?", "Delete Product", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
DatabaseAccess.DeleteProduct(productListBox.SelectedItem.ToString());
LoadListBox1();
bkmNameListBox.Items.Clear();
}
}
else
{
MessageBox.Show("You cannot delete this product because one if its Debug BKM is in editing", "Access Denied");
}
}
productListBox内の1つのアイテムを削除する上記のコード。複数のアイテムを削除するように変更するにはどうすればよいですか?ありがとう。