private void SelectAll_Click(object sender, EventArgs e) { for (int i = 0; i < InfoList.Items.Count; i++) { InfoList.SetItemChecked(i, true); } }
private void ReverseSelect_Click(object sender, EventArgs e) { for (int i = 0; i < InfoList.Items.Count; i++) { if (InfoList.GetItemChecked(i)) { InfoList.SetItemChecked(i, false); } else { InfoList.SetItemChecked(i, true); } } }