public RadioSet(RadioDevice radioDevice, SoundMuter soundMuter) { _radioDevice = radioDevice; _soundMuter = soundMuter; _radioDevice.TurnOn(); }
public RadioDevice Create() { DeviceFinder deviceFinder = new DeviceFinder(); IList<string> devicePaths = deviceFinder.FindDevices(); IntPtr deviceHandle = deviceFinder.OpenDevice(devicePaths[0]); RadioDevice radioDevice = new RadioDevice(deviceHandle); return radioDevice; }