justify"> && ClRet2 (can.Resp_time)> = ClRet2 (rec.Resp_time)
&& ClRet3 (can.Angle)> = ClRet3 (rec.Angle)
&& ClRet4 (can.Resolution)> = ClRet4 (rec.Resolution)). Add (can);. Add (list [rnd.Next (0, list.Count - 1 )]);
= 0; (int i = 0; i
{. BackColor = Color.Green;. Text = "Еліта розвивається";
}
{. BackColor = Color.Red;. Text = "Еліта деградує";
}
}
. DataSource = null;. Rows.Clear ();. DataSource = elite;
. Show (vyvod);. Visible = false;. Visible = false;
}
}
/// Збір врожаю
///
///
/// void button2_Click (object sender, EventArgs e)
{. Visible = false;. Visible = false; (numericUpDown4.Value> 0)
{kol; vyvod = ""; (numericUpDown4.Value> elite.Count/2) = elite.Count/2; kol = (int) numericUpDown4.Value;
= 0; (int i = 0; i
{= 0; (int i = 0; i
{(i! = 0) (ClRet1 (elite [max]. Diagonal) + ClRet2 (elite [max]. Resp_time) + (elite [max]. Angle) + ClRet4 (elite [max ]. Resolution)> (elite [i]. Diagonal) + ClRet2 (elite [i]. Resp_time) + (elite [i]. Angle) + ClRet4 (elite [i]. Resolution)) = i;
} + = elite [max]. Diagonal + "" + elite [max]. Resp_time + "" + [max]. Angle + "" + elite [max] . Resolution + " n";. RemoveAt (max);
= elite [rnd.Next (0, elite.Count - 1)];
= list [rnd.Next (0, list.Count - 1)];
(ClRet1 (can.Diagonal)> = ClRet1 (rec.Diagonal)
&& ClRet2 (can.Resp_time)> = ClRet2 (rec.Resp_time)
&& ClRet3 (can.Angle)> = ClRet3 (rec.Angle)
&& ClRet4 (can.Resolution)> = ClRet4 (rec.Resolution)). Add (can);. Add (list [rnd.Next (0, list.Count - 1 )]);
= 0; (int i = 0; i