コード例 #1
0
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     for (int i = 0; i < SearchedReaders_ChkLstBx.Items.Count; i++)
     {
         SearchedReaders_ChkLstBx.SetItemChecked(i, AllReadersSelectBtn.Checked);
     }
 }
コード例 #2
0
 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;
         }
     }
 }