| | |
| | | Application.RunOnMainThread(() => { |
| | | bodyView.btnTempValues.Text = temp.GetAttrState(AcstSub_AttrEnum.room_temp.ToString()); |
| | | bodyView.btnHumiValues.Text = temp.GetAttrState(AcstSub_AttrEnum.room_humidity.ToString()); |
| | | |
| | | |
| | | int setTempValue = 0; |
| | | int.TryParse(temp.GetAttrState(AcstSub_AttrEnum.set_temp.ToString(), "--"), out setTempValue); |
| | | if (setTempValue != 0) |
| | | bodyView.btnSetTempValues.Text = setTempValue.ToString(); |
| | | |
| | | bodyView.btnSetTempValues.Width = bodyView.btnSetTempValues.GetTextWidth() + Application.GetRealWidth(10); |
| | | |
| | | int progress = 0; |
| | |
| | | Text = function.GetAttrState(AcstSub_AttrEnum.set_temp.ToString(), "--") |
| | | }; |
| | | contentView.AddChidren(btnSetTempValues); |
| | | int setTempValue = 0; |
| | | int.TryParse(function.GetAttrState(AcstSub_AttrEnum.set_temp.ToString(), "--"), out setTempValue); |
| | | if (setTempValue != 0) |
| | | btnSetTempValues.Text = setTempValue.ToString(); |
| | | bodyView.btnSetTempValues.Width = bodyView.btnSetTempValues.GetTextWidth() + Application.GetRealWidth(10); |
| | | |
| | | |
| | | |
| | | var btnSetTempUnit = new Button() |
| | | { |
| | |
| | | SeekBarPadding = Application.GetRealWidth(20), |
| | | IsProgressTextShow = false, |
| | | ProgressChangeDelayTime = 0, |
| | | IsOffline = function.trait_on_off.curValue.ToString() == "off", |
| | | Enable = function.trait_on_off.curValue.ToString() == "off", |
| | | //IsOffline = function.trait_on_off.curValue.ToString() == "off", |
| | | }; |
| | | contentView.AddChidren(tempBar); |
| | | tempBar.OnProgressChangedEvent = (sender, e) => { |
| | |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | |
| | | Control.Ins.SendReadCommand(function); |
| | | |
| | | } |
| | | } |
| | | } |