mattingEventArgs e)
{
}
// Двовимірний випадок/графічне представлення
private void DrawGraph ()
{
GraphView form2 = new GraphView ();
form2.Show ();
GetValuesFromGrid ();
int cnt;
if (m == 0)
cnt = var;
else cnt = m;
int [] x_ = new int [cnt - paretoSet.Count];
int [] y_ = new int [cnt - paretoSet.Count];
for (int i = 0; i
{
x_ [i] = y [pareto.deleted [i]] [0];
y_ [i] = y [pareto.deleted [i]] [1];
}
cnt = paretoSet.Count;
int [] pareto_x = new int [cnt];
int [] pareto_y = new int [cnt];
for (int i = 0; i
{
pareto_x [i] = y [paretoSet [i]] [0];
pareto_y [i] = y [paretoSet [i]] [1];
}
panel1 = form2.GetPanel ();
var control = new Graph (). DisplayGrahpics (panel1, x_, y_, pareto_x, pareto_y);
panel1.Controls.Clear ();
panel1.Controls.Add (control);
panel1.Invalidate ();
}
// Random values ​​
private void button2_Click_1 (object sender, EventArgs e)
{
Random random = new Random ();
if (tabControl1.SelectedIndex == 0)
{
for (int i = 0; i
{
for (int j = 0; j
{
dataGridView1 [j, i]. Value = random.Next (20);
}
}
}
else if (tabControl1.SelectedIndex == 1)
{
for (int i = 0; i
{
for (int j = 0; j
{
dgA [i, j]. Value = random.Next (5);
dgK [i, j]. Value = random.Next (5);
}
for (int q = 0; q
{
dgX [i, q]. Value = random.Next (5);
}
}
}
}
private ...