private void btn_rdm_begin_Click(object sender, EventArgs e) { BuildInfo bi = new BuildInfo() { RandomBuild = true, Iterations = (int)nud_turns.Value }; FrmBuild fb = new FrmBuild(bi); fb.ShowDialog(); }
private void btn_begin_Click(object sender, EventArgs e) { BuildInfo bi = new BuildInfo() { RandomBuild = false, Width = (int)nud_width.Value, Height = (int)nud_height.Value, Probability = (double)nud_prob.Value, Iterations = (int)nud_turns.Value }; FrmBuild fb = new FrmBuild(bi); fb.ShowDialog(); }