| | |
| | | |
| | | new System.Threading.Thread(() => { |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add("onoff", btnPowerControl.IsSelected ? "on" : "off"); |
| | | d.Add(FunctionAttributeKey.OnOff, btnPowerControl.IsSelected ? "on" : "off"); |
| | | Control.Ins.SendWriteCommand(function, d); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | |
| | | X = btnSubTempIcon.Right, |
| | | Y = Application.GetRealHeight(45 + 11), |
| | | Height = Application.GetRealHeight(14), |
| | | Width = Application.GetRealWidth(22), |
| | | Width = Application.GetRealWidth(35), |
| | | TextColor = 0xFF1b3035, |
| | | TextSize = 10, |
| | | Text = sub.GetAttrState(AcstSub_AttrEnum.room_temp.ToString()) + "°C", |
| | |
| | | X = btnSubHumidityIcon.Right, |
| | | Y = Application.GetRealHeight(45 + 11), |
| | | Height = Application.GetRealHeight(14), |
| | | Width = Application.GetRealWidth(22), |
| | | Width = Application.GetRealWidth(35), |
| | | TextColor = 0xFF1b3053, |
| | | TextSize = 10, |
| | | Text = sub.GetAttrState(AcstSub_AttrEnum.room_humidity.ToString()) + "%", |