private void simulationModuleBtn_Click(object sender, EventArgs e) { SimulationModuleForm form = new SimulationModuleForm(); if (DialogResult.OK == form.ShowDialog()) { RiverSimulationProfile.profile.simulationModuleFinished = true; } UpdateStatus(); }