protected override void RenderDeviceElement(LampListData listData, Rect cellRect, Action <LampListData> updateAction)
 {
     _devicePicker.Render(cellRect, listData.Device, item => {
         listData.Device = item;
         updateAction(listData);
     });
 }
 protected override void RenderDeviceElement(CoilListData coilListData, Rect cellRect, Action <CoilListData> updateAction)
 {
     _devicePicker.Render(cellRect, coilListData.Device, item => {
         coilListData.Device = item;
         UpdateDeviceItem(coilListData);
         updateAction(coilListData);
     }, item => item.AvailableCoils.Any());
 }
Esempio n. 3
0
 protected override void RenderDeviceElement(SwitchListData switchListData, Rect cellRect, Action <SwitchListData> updateAction)
 {
     _devicePicker.Render(cellRect, switchListData.Device, component => {
         switchListData.Device = component;
         UpdateDeviceItem(switchListData);
         updateAction(switchListData);
     }, switchDevice => switchDevice.AvailableSwitches.Any());
 }