| | |
| | | deviceedit.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | |
| | | |
| | | if (deviceinof.Type != DeviceType.DoorLock) |
| | | { |
| | | var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor }; |
| | |
| | | } |
| | | } |
| | | break; |
| | | case DeviceType.TemperatureSensor: |
| | | // conditionIcon.UnSelectedImagePath = "ZigeeLogic/temperature.png"; |
| | | var dev = deviceinof as TemperatureSensor; |
| | | if (conditions["Cluster_ID"]=="1026") { |
| | | dev.SensorDiv = 1; |
| | | } else { |
| | | dev.SensorDiv = 2; |
| | | } |
| | | if (conditions["Cluster_ID"] == "1026") |
| | | { |
| | | conditionIcon.UnSelectedImagePath = "ZigeeLogic/temperature.png"; |
| | | devicestatus.Text = ">" + conditions["AttriButeData1"] + "℃"; |
| | | } |
| | | else |
| | | { |
| | | conditionIcon.UnSelectedImagePath = "ZigeeLogic/humidity.png"; |
| | | devicestatus.Text = "<" + conditions["AttriButeData1"] + "%"; |
| | | } |
| | | break; |
| | | |
| | | } |
| | | |