| | |
| | | |
| | | public override void RemoveFromParent() |
| | | { |
| | | actionRefresh?.Invoke(); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | actionRefresh?.Invoke(); |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | base.RemoveFromParent(); |
| | | } |
| | | |
| | |
| | | |
| | | btnTempCcValue.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | LoadEditDialog(-5, 5, Convert.ToInt32(function.GetAttrState(FunctionAttributeKey.room_humidity_cc)), (reslut) => |
| | | LoadEditDialog(-10, 10, Convert.ToInt32(function.GetAttrState(FunctionAttributeKey.room_humidity_cc)), (reslut) => |
| | | { |
| | | btnTempCcValue.Text = reslut + "°C"; |
| | | Dictionary<string, string> dic = new Dictionary<string, string>(); |
| | |
| | | |
| | | btnHumidityCcValue.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | LoadEditDialog(-10, 10, Convert.ToInt32(function.GetAttrState(FunctionAttributeKey.room_humidity_cc)), (reslut) => |
| | | LoadEditDialog(-20, 20, Convert.ToInt32(function.GetAttrState(FunctionAttributeKey.room_humidity_cc)), (reslut) => |
| | | { |
| | | btnHumidityCcValue.Text = reslut + "%"; |
| | | Dictionary<string, string> dic = new Dictionary<string, string>(); |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = function.GetAttrState(FunctionAttributeKey.cac_valve) + "°C", |
| | | TextID = function.GetAttrState(FunctionAttributeKey.cac_valve) == "on"? StringId.On:StringId.OFF, |
| | | }; |
| | | cacValveRow.AddChidren(btnCacValvaValue); |
| | | } |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = function.GetAttrState(FunctionAttributeKey.fh_valve), |
| | | TextID = function.GetAttrState(FunctionAttributeKey.fh_valve) == "on"? StringId.On:StringId.OFF, |
| | | }; |
| | | fhValveRow.AddChidren(btnFhValvaValue); |
| | | } |
| | |
| | | { |
| | | if (result != null && result.Code == StateCode.SUCCESS) |
| | | { |
| | | if (result.Data.ToString() == "true") |
| | | { |
| | | deviceMessageRules.push = push; |
| | | } |
| | | else |
| | | { |
| | | btnSwtichIcon0.IsSelected = deviceMessageRules.push; |
| | | } |
| | | } |
| | | else |
| | | { |