private void btnCreateFlightSpeedFactorStep_Click(object sender, EventArgs e) { if (_presentation != null) { gviPresentationStepFlightSpeed speed; switch (cbFlightSpeedFactor.SelectedIndex) { case 0: speed = gviPresentationStepFlightSpeed.gviPresentationStepFlightVerySlow; break; case 1: speed = gviPresentationStepFlightSpeed.gviPresentationStepFlightSlow; break; case 2: speed = gviPresentationStepFlightSpeed.gviPresentationStepFlightNormal; break; case 3: speed = gviPresentationStepFlightSpeed.gviPresentationStepFlightFast; break; case 4: speed = gviPresentationStepFlightSpeed.gviPresentationStepFlightVeryFast; break; default: speed = gviPresentationStepFlightSpeed.gviPresentationStepFlightNormal; break; } _presentation.CreateFlightSpeedFactorStep(gviPresentationStepContinue.gviPresentationStepContinueWait, 0, "", speed, _presentation.Steps.Count); } }