| | |
| | | return; |
| | | } |
| | | updataTime = DateTime.Now; |
| | | bodyView.arcBar.ProgressBarColor = bodyView.aC.trait_on_off.curValue.ToString() == "on" ? CSS_Color.MainColor : CSS_Color.PromptingColor2; |
| | | bodyView.arcBar.IsOffline = bodyView.aC.trait_on_off.curValue.ToString() != "on"; |
| | | bodyView.btnTemp.Text = uAc.trait_temp.curValue.ToString(); |
| | | bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(uAc.trait_IndoorTemp.curValue)) + "°C"; |
| | | bodyView.btnMode.UnSelectedImagePath = uAc.curModeImage; |
| | | bodyView.btnWindSpeed.UnSelectedImagePath = uAc.curFanImage; |
| | | bodyView.btnSwitch.IsSelected = uAc.trait_on_off.curValue.ToString() == "on"; |
| | | if (uAc.refreshTime.AddMilliseconds(1000) < DateTime.Now) |
| | | if (uAc.refreshTime.AddMilliseconds(500) < DateTime.Now) |
| | | { |
| | | bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uAc.trait_temp.curValue)); |
| | | } |
| | |
| | | { |
| | | btnMinus.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | if (aC.trait_on_off.curValue.ToString() == "off") |
| | | { |
| | | return; |
| | | } |
| | | var temp = Convert.ToInt32(aC.trait_temp.curValue); |
| | | if (temp < 17) |
| | | { |
| | |
| | | }; |
| | | btnPlus.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | if (aC.trait_on_off.curValue.ToString() == "off") |
| | | { |
| | | return; |
| | | } |
| | | var temp = Convert.ToInt32(aC.trait_temp.curValue); |
| | | if (temp > 37) |
| | | if (temp > 31) |
| | | { |
| | | return; |
| | | } |
| | |
| | | { |
| | | aC.trait_temp.curValue = arcBar.Progress.ToString(); |
| | | btnTemp.Text = aC.trait_temp.curValue.ToString(); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.SetTemp, aC.trait_temp.curValue.ToString()); |
| | | Control.Ins.SendWriteCommand(aC, d); |
| | | }; |
| | |
| | | { |
| | | btnMode.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | if (aC.trait_on_off.curValue.ToString() == "off") |
| | | { |
| | | return; |
| | | } |
| | | LoadDiv_ChangeModeView(); |
| | | }; |
| | | btnWindSpeed.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | if (aC.trait_on_off.curValue.ToString() == "off") |
| | | { |
| | | return; |
| | | } |
| | | LoadDiv_ChangeFanView(); |
| | | }; |
| | | |