private void CloseDevice() { if (ProcessThread != null) { ProcessThread.Abort(); ProcessThread = null; } if (Device != null) { Device.CloseControl(); Device = null; } }
public void CloseSource() { if (ProcessThread != null) { Processing = false; ProcessThread.Join(500); ProcessThread.Abort(); ProcessThread = null; } if (SampleSource != null) { SampleSource.CloseControl(); SampleSource = null; } CloseDemod(); }