private void simpleButton3_Click(object sender, EventArgs e) { frmWidebandConfig config = new frmWidebandConfig(); config.WidebandLambdaHighAFR = m_appSettings.WidebandHighAFR; config.WidebandLambdaHighVoltage = m_appSettings.WidebandHighVoltage; config.WidebandLambdaLowAFR = m_appSettings.WidebandLowAFR; config.WidebandLambdaLowVoltage = m_appSettings.WidebandLowVoltage; if (config.ShowDialog() == DialogResult.OK) { m_appSettings.WidebandHighAFR = config.WidebandLambdaHighAFR; m_appSettings.WidebandHighVoltage = config.WidebandLambdaHighVoltage; m_appSettings.WidebandLowAFR = config.WidebandLambdaLowAFR; m_appSettings.WidebandLowVoltage = config.WidebandLambdaLowVoltage; } DialogResult = DialogResult.None; }