示例#1
0
        public RadioSet(RadioDevice radioDevice, SoundMuter soundMuter)
        {
            _radioDevice = radioDevice;
            _soundMuter = soundMuter;

            _radioDevice.TurnOn();
        }
示例#2
0
 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;
 }