private void miConfigureFit_Click(object sender, EventArgs e) { var frm = new frmConfigureFit(); frm.FixedColourCoeff = m_FixedColourCoeff; if (frm.ShowDialog(this) == DialogResult.OK) { m_FixedColourCoeff = frm.FixedColourCoeff; Recalculate(); } }