private void CancelScan() { if (radioButton5.Checked) { _scans.CancelRepetition(); } else if (radioButton6.Checked) { _scans.CancelCustomScan(); } }