private void settingsButton_Click(object sender, EventArgs e) { using (SimulationProperties form = new SimulationProperties(setup)) { form.ShowDialog(this); UpdateControls(); } }
private void button_settings(object sender, EventArgs e) { SimulationProperties form = new SimulationProperties(config); if (form.ShowDialog(this) == DialogResult.OK) { UpdatePanel(); } }