コード例 #1
0
 private void ToggleExpansions_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < ListExpansions.Items.Count; i++)
     {
         ListExpansions.SetItemChecked(i, !ListExpansions.GetItemChecked(i));
     }
 }
コード例 #2
0
 private void ClearExpansions_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < ListExpansions.Items.Count; i++)
     {
         ListExpansions.SetItemChecked(i, false);
     }
 }