ckgroundColor = Color.LightGray;
// dataGridView2.ColumnCount = lst1.Length;
// for (int i = 0; i
// {
// dataGridView2.RowCount = lst1.Length;
//}
// for (int i = 0; i
// {
// dataGridView4.Rows [i]. Cells [0]. Value = Convert.ToString (lst1 [i]);
//}
//}
///
///Enter to DataGridview version 1
///
///
/// Zanesenie_v_DataGrid (double [,] lst, DataGridView datagridview)
{. BackgroundColor = Color.LightGray;. ColumnCount = lst.GetLength (0); (int i = 0; i
{. RowCount = lst.GetLength (1);
} (int i = 0; i
{(int j = 0; j
{
// datagridview.Rows [0]. DefaultCellStyle.BackColor = Color.Teal;
// datagridview.Rows [0]. Cells [j]. Value =. ToString ();. Rows [i]. Cells [j]. Value = Convert.ToString (lst [i, j]);
}
}
}
///
///Button_click
///
///
/// void button1_Click (object sender, EventArgs e)
{_z = frm_z.c_z; = frm_z.z; = c_z/20; = frm_z.loss; (p == 0 && c_z == 0 && h == 0 && z == 0)
{. Show ("У полях нулі. Введіть будь ласка в ці поля число більш нуля.");
} = cet.Probability (z, c_z, h, loss);. functionFirstEtap (z, c_z, h, loss, proba);. Min (cet.mass); _v_DataGrid (cet.mass , dataGridView1); _v_DataGrid1 (cet.Probability (z, c_z, h, loss), cet.Min (cet.mass), cet.Strategy (z, c_z, h, loss), cet.FutureProbability (cet.GenerationNextEtap (z , c_z, h, loss)), Out (z));. Minimum = 1;. Maximum = z;. Value = 1;. Step = 1; (int i = 0; i
{. PerformStep ();
}
// MessageBox.Show (cet.F_res (). ToString ());
// cet.GenerationNextEtap (z, c_z, h, loss, progressBar1); _v_DataGrid (cet.GenerationNextEtap (z, c_z, h, loss), dataGridView3);
// Zanesenie_Probability_v_DataGrid1 (cet.FutureProbability (cet.GenerationNextEtap (z, c_z, h, loss)));
// Zanesenie_v_DataGrid (cet.FutureProbability (cet.GenerationNextEtap (z, c_z, h, loss)), dataGridView4);
...