private void checkBox1_CheckedChanged(object sender, EventArgs e) { for (int i = 0; i < SearchedReaders_ChkLstBx.Items.Count; i++) { SearchedReaders_ChkLstBx.SetItemChecked(i, AllReadersSelectBtn.Checked); } }
private void removeUnusedReaders() { for (int i = SearchedReaders_ChkLstBx.Items.Count - 1; i >= 0; i--) { String key = SearchedReaders_ChkLstBx.Items[i].ToString(); if (!SearchedReaders_ChkLstBx.GetItemChecked(i)) { SearchedReaders_ChkLstBx.Items.Remove(key); LiveViewReaderList.Items.Remove(key); } if (SearchedReaders_ChkLstBx.Items.Count == 0) { break; } } }