public MainForm() { InitializeComponent(); model = new ModelRandom(Lambda); modelChar = new ModelCharacteristics(model); textBoxLambda.Text = Lambda.ToString(); for (int i = 0; i < nCol; i++) { table.Columns.Add("column" + i.ToString(), " "); } textBoxKHyp.Text = KHyp.ToString(); textBoxKGist.Text = KGist.ToString(); textBoxAlpha.Text = Alpha.ToString(); }
private bool CheckLambda() { double l = Lambda; bool res = Double.TryParse(textBoxLambda.Text, out Lambda); if (!res || Lambda <= 0) { MessageBox.Show("Неверное значение λ"); return(false); } if (l != Lambda) { model = new ModelRandom(Lambda); } return(true); }
public ModelCharacteristics(ModelRandom _model) { this.model = _model; }