public void Close() { if (_input != null) { _input.Close(); } }
public void CloseDevice() { if (InputDevice != null) { InputDevice.Stop(); InputDevice.Close(); InputDevice = null; } if (OutputDevice != null) { OutputDevice.Close(); OutputDevice = null; } Connected = false; }
public void Stop() { loop = false; wait_handle.WaitOne(); input_device.Close(); }