| | |
| | | return; |
| | | } |
| | | updataTime = DateTime.Now; |
| | | bodyView.arcBar.IsOffline = bodyView.aC.trait_on_off.curValue.ToString() != "on"; |
| | | //bodyView.arcBar.IsOffline = bodyView.aC.trait_on_off.curValue.ToString() != "on"; |
| | | //bodyView.btnSwitch.IsSelected = uAc.trait_on_off.curValue.ToString() == "on"; |
| | | //if (uAc.refreshTime.AddMilliseconds(500) < DateTime.Now) |
| | | //{ |
| | | // bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uAc.trait_temp.curValue)); |
| | | //} |
| | | //bodyView.arcBar.ThumbImagePath = uAc.trait_on_off.curValue.ToString() == "on" ? "FunctionIcon/AC/DiyThumbIconOn.png" : "FunctionIcon/AC/DiyThumbIcon.png"; |
| | | //bodyView.arcBar.IsClickable = uAc.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(500) < DateTime.Now) |
| | | if(uAc.trait_on_off.curValue.ToString() == "on") |
| | | { |
| | | bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uAc.trait_temp.curValue)); |
| | | } |
| | | bodyView.arcBar.ThumbImagePath = uAc.trait_on_off.curValue.ToString() == "on" ? "FunctionIcon/AC/DiyThumbIconOn.png" : "FunctionIcon/AC/DiyThumbIcon.png"; |
| | | bodyView.arcBar.IsClickable = uAc.trait_on_off.curValue.ToString() == "on"; |
| | | if(uAc.trait_mode.curValue.ToString() == "fan") |
| | | { |
| | | bodyView.arcBar.IsClickable = false; |
| | | bodyView.arcBar.IsOffline = false; |
| | | bodyView.btnSwitch.IsSelected = true; |
| | | bodyView.arcBar.ThumbImagePath = "FunctionIcon/AC/DiyThumbIconOn.png"; |
| | | if (uAc.trait_mode.curValue.ToString() == "fan") |
| | | { |
| | | bodyView.arcBar.IsClickable = false; |
| | | } |
| | | else |
| | | { |
| | | bodyView.arcBar.IsClickable = true; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | bodyView.arcBar.IsClickable = true; |
| | | bodyView.arcBar.IsOffline = true; |
| | | bodyView.btnSwitch.IsSelected = false; |
| | | bodyView.arcBar.IsClickable = false; |
| | | bodyView.arcBar.ThumbImagePath = "FunctionIcon/AC/DiyThumbIcon.png"; |
| | | } |
| | | |
| | | }); |
| | | } |
| | | catch (Exception ex) |