private void button17_Click(object sender, EventArgs e) { /* int S = 0; * foreach (var sensor in sensors) * { * S += sensor.Weight * Convert.ToInt32(sensor.Input); * } * bool y = S >= teta; * checkBox2.Checked = y;*/ checkBox2.Checked = nNet.Check(sensors); }