コード例 #1
0
        private void MenuClickTyreCalculator(object sender, EventArgs e)
        {
            FormTyreCalc frmTyreCalc = new FormTyreCalc(cfg.cfgTyreOrigin, cfg.cfgTyreCurrent);

            if (frmTyreCalc.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                cfg.cfgTyreOrigin  = frmTyreCalc._tOrigin;
                cfg.cfgTyreCurrent = frmTyreCalc._tNew;

                ConversionFunctions.SpeedCorrectCoefficient = TyreParams.CalcK(frmTyreCalc._tOrigin, frmTyreCalc._tNew);
            }
        }
コード例 #2
0
ファイル: FormOptions.cs プロジェクト: vc/from-editor
        private void MenuClickTyreCalculator(object sender, EventArgs e)
        {
            FormTyreCalc frmTyreCalc = new FormTyreCalc(cfg.cfgTyreOrigin, cfg.cfgTyreCurrent);
            if (frmTyreCalc.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                cfg.cfgTyreOrigin = frmTyreCalc._tOrigin;
                cfg.cfgTyreCurrent = frmTyreCalc._tNew;

                ConversionFunctions.SpeedCorrectCoefficient = TyreParams.CalcK(frmTyreCalc._tOrigin, frmTyreCalc._tNew);
            }
        }