Exemplo n.º 1
0
            public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
            {
                var deviceNames = EtherDreamDevice.GetDevices().Select(device => device.Name).ToArray();

                return(new StandardValuesCollection(deviceNames));
            }
Exemplo n.º 2
0
 public override IObservable <EtherDreamPoint[]> Process(IObservable <EtherDreamPoint[]> source)
 {
     return(Observable.Using(
                () => EtherDreamDevice.GetDevices().First(device => device.Name == DeviceName),
                device => source.Do(input => device.WriteFrame(input, PointsPerSecond, Repetitions))));
 }