private void btnConfirm_Click(object sender, EventArgs e) { SelectedCircuit = (Circuit)cmbCircuit.SelectedValue; Mirror = chkMirror.Checked; Close(); }
/// <summary> /// Sets up a new race. /// </summary> /// <param name="circuit">The circuit to setup.</param> /// <param name="mirror">Determines whether to setup the mirrored version of the circuit.</param> public void SetupRace(Circuit circuit, bool mirror) { if (mirror) { SetupRace(circuit.MirrorBlockNumber, circuit.MirrorNumber); } else { SetupRace(circuit.BlockNumber, circuit.Number); } }
/// <summary> /// Sets up a new race. /// </summary> /// <param name="circuit">The circuit to setup.</param> public void SetupRace(Circuit circuit) { SetupRace(circuit, false); }