| | |
| | | list.AddRange(list2); |
| | | list.AddRange(FunctionList.List.groupControls); |
| | | #if DEBUG |
| | | //GetTestDevice(ref list, true); |
| | | GetTestDevice(ref list, true); |
| | | #endif |
| | | return list; |
| | | } |
| | |
| | | } |
| | | else if (SPK.SensorPm10 == device.spk |
| | | || SPK.SensorPirHold == device.spk |
| | | || SPK.SensorLight == device.spk) |
| | | ) |
| | | { |
| | | return "LogicIcon/sensor.png"; |
| | | } |
| | |
| | | { |
| | | return "FunctionIcon/DoorLock/DoorLock.png"; |
| | | } |
| | | |
| | | else if (SPK.SensorDryContact == device.spk |
| | | || SPK.SensorDryContact2 == device.spk) |
| | | { |
| | | return "LogicIcon/ganjiedian.png"; |
| | | } |
| | | else if (SPK.SensorLight == device.spk) |
| | | { |
| | | return "LogicIcon/lightloguc.png"; |
| | | } |
| | | //LogicIcon/heatlogic.png" |
| | | return $"FunctionIcon/Icon/{device.IconName}.png"; |
| | | |
| | |
| | | { |
| | | //模拟设备 |
| | | var functions = new List<Function> { |
| | | new Entity.Function { sid = "1234567890", name = "照明传感器", spk = Entity.SPK.SensorLight }, |
| | | // new Entity.Function { sid = "1234567891", name = "温度传感器", spk = Entity.SPK.SensorTemperature }, |
| | | // new Entity.Function { sid = "1234567892", name = "湿度传感器", spk = Entity.SPK.SensorHumidity }, |
| | | new Entity.Function { sid = "1234567890", name = "光照传感器", spk = Entity.SPK.SensorLight }, |
| | | new Entity.Function { sid = "1234567891", name = "干节点", spk = Entity.SPK.SensorDryContact }, |
| | | new Entity.Function { sid = "1234567892", name = "紧急求助传感器", spk = Entity.SPK.SensorHelp }, |
| | | //new Entity.Function { sid = "12345678933456", name = "门锁", spk = Entity.SPK.DoorLock }, |
| | | // new Entity.Function { sid = "1234567895444", name = "视频门锁", spk = Entity.SPK.VideoDoorLock }, |
| | | //new Entity.Function { sid = "12345678968888", name = "人体存在传感器", spk = Entity.SPK.SensorPirHold }, |