Example #1
0
 public StructEnumerator()
 {
     data            = new List <int>(Enumerable.Range(0, N));
     box             = new CollectionBox(data);
     underlying      = new CollectionUnderlying(data);
     wrap            = new CollectionWrap(data);
     wrapNoInterface = new CollectionWrapNoInterface(data);
 }
Example #2
0
 private void SelectAll_CheckedChanged(object sender, EventArgs e)
 {
     if (SelectAll.Checked)
     {
         for (int i = 0; i < CollectionBox.Items.Count; i++)
         {
             CollectionBox.SetItemChecked(i, true);
             buttonX1.Enabled = true;
         }
     }
     else
     {
         for (int i = 0; i < CollectionBox.Items.Count; i++)
         {
             CollectionBox.SetItemChecked(i, false);
             buttonX1.Enabled = false;
         }
     }
 }