public IEnumerable <string> GetPortIdsByDeviceType(IoDeviceType deviceType)
 {
     return(Hub.GetPortsByDeviceType(deviceType).Select(h => h.PortID));
 }
 public PortSliderCheckboxController(Label label, Slider slider, CheckBox checkbox, IoDeviceType handledDeviceType)
     : base(label, slider, handledDeviceType)
 {
     _checkbox = checkbox;
 }
예제 #3
0
 public IEnumerable <HubPort> GetPortsByDeviceType(IoDeviceType deviceType)
 {
     return(Ports.Where(p => p?.DeviceType.Code == deviceType.Code));
 }
예제 #4
0
 public PortSliderController(Label label, Slider slider, IoDeviceType iOType)
 {
     _label            = label;
     _slider           = slider;
     HandledDeviceType = iOType;
 }
 public PortComboBoxController(Label label, ComboBox comboBox, IoDeviceType handledDeviceType)
 {
     _label            = label;
     _comboBox         = comboBox;
     HandledDeviceType = handledDeviceType;
 }