CheckBox[] ches = new CheckBox[16];
static int therest;
static int therest;
private void step()
{
for (int i = 1; i <= 15; i++) //控件数组赋值
{
ches[i] = (CheckBox)(this.Controls["checkBox" + i.ToString()]);
if (ches[i].Checked == false)
{
ches[i].Enabled = true;
}
ches[i].Click += new EventHandler(ches_Click);
}
}