| | |
| | | int min = device.GetAttribute("set_temp") == null ? 16 : device.GetAttribute("set_temp").min; |
| | | int max = device.GetAttribute("set_temp") == null ? 32 : device.GetAttribute("set_temp").max; |
| | | string unit = InpOrOutLogicMethod.Current.GetTemperatureUnit(device); |
| | | var setTempAttr = device.GetAttribute(FunctionAttributeKey.SetTemp); |
| | | ///温度点击事件 |
| | | temperatureView.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | string set_temp_value = stateStr.Replace(unit, ""); |
| | | //数据封装 |
| | | AddDictionary(keyVlaue, set_temp_value); |
| | | }, min, max, unit); |
| | | }, min, max, unit, setTempAttr.step); |
| | | |
| | | }; |
| | | ///模式点击事件 |
| | |
| | | DelayView(fLayout, floorHeatingModehView.frameLayout.Bottom); |
| | | #endregion |
| | | #region 点击事件 |
| | | var setTempAttr = device.GetAttribute(FunctionAttributeKey.SetTemp); |
| | | ///开关点击事件 |
| | | floorHeatingSwitchVie.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | |
| | | //数据封装 |
| | | AddDictionary(keyVlaue, set_temp_value); |
| | | |
| | | }, min, max, unit); |
| | | }, min, max, unit, setTempAttr.step); |
| | | |
| | | }; |
| | | ///模式点击事件 |