;. Columns [2]. HeaderText = "Діагональ";. Columns [3]. HeaderText = "Час відгуку";. Columns [4]. HeaderText = "Кут огляду";. Columns [5]. HeaderText = "Роздільна здатність";
}
/// Створити елітну групу
///
///
/// void button3_Click (object sender, EventArgs e)
{= 0;. Clear ();. DataSource = null;. Rows.Clear (); = 0; rnd = new Random (); (int i = 0; i
{(ClRet1 (list [i]. Diagonal)> = ClRet1 (comboBox1.Text)
&& ClRet2 (list [i]. Resp_time)> = ClRet2 (comboBox2.Text)
&& ClRet3 (list [i]. Angle)> = ClRet3 (comboBox3.Text)
&& ClRet4 (list [i]. Resolution)> = ClRet4 (comboBox4.Text))
{. Add (list [i]);
}
{(rnd.Next (0, 100) <= 2)
{. Add (list [i]); + = 1;
}
}
}. Text = "Сорнов:" + sor.ToString ();. Visible = true;. DataSource = elite;
}
int ClRet1 (string s)
{r = 0; (s)
{"17 " ": r = 0; break;" 19 "": r = 1; break; "20 " ": r = 2; break; "22 " ": r = 3; break;" 24 "": r = 4; break;
} r;
}
public int ClRet2 (string s)
{r = 0; (s)
{"5 мсек": r = 0; break; "2 мсек": r = 1; break;
} r;
}
int ClRet3 (string s)
{r = 0; (s)
{"160 В°": r = 0; break; "170 В°": r = 1; break; "176 В°": r = 2; break; p>
} r;
}
int ClRet4 (string s)
{r = 0; (s)
{"1280х720": r = 0; break; "1280х1024": r = 1; break; "1366х768": r = 2; break; "1440х900": r = 3 ; break; "1600х900": r = 4; break; "1680х1050": r = 5; break; "1920х1080": r = 6; break;
} r;
}
/// Продовжити еволюцію
///
///
/// void button5_Click (object sender, EventArgs e)
{(elite.Count> 0)
{= 0; (int i = 0; i