示例#1
0
        private void btnCalcSpeedo_Click(object sender, EventArgs e)
        {
            SpeedFactorCalcForm speedFactorCalcForm = new SpeedFactorCalcForm();

            if (speedFactorCalcForm.ShowDialog() == DialogResult.OK)
            {
                txtSpeedoFactor.Text = speedFactorCalcForm.SpeedFactor.ToString("0.000");
                MarkProfileDirty(true);
            }
        }
示例#2
0
 private void btnCalcSpeedo_Click(object sender, EventArgs e)
 {
     SpeedFactorCalcForm speedFactorCalcForm = new SpeedFactorCalcForm();
     if (speedFactorCalcForm.ShowDialog() != DialogResult.OK)
         return;
     txtSpeedoFactor.Text = speedFactorCalcForm.getSpeedFactor().ToString("0.000");
     MarkProfileDirty(true);
 }