| | |
| | | { |
| | | return; |
| | | } |
| | | if (updateTemp.sid != bodyView.function.sid) |
| | | { |
| | | return; |
| | | } |
| | | var outinTemp = Convert.ToInt32(Convert.ToDouble(updateTemp.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", "."))); |
| | | bodyView.btnTemp.Text = outinTemp.ToString(); |
| | | bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(updateTemp.GetAttrState(FunctionAttributeKey.RoomTemp).Replace(",", "."))) + "°C"; |
| | | //bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(updateTemp.GetAttrState(FunctionAttributeKey.RoomTemp).Replace(",", "."))) + "°C"; |
| | | bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTempOutdoorTemp).Replace("{1}", Convert.ToInt32(Convert.ToDouble(updateTemp.GetAttrState(FunctionAttributeKey.RoomTemp).Replace(",", "."))).ToString()).Replace("{0}", MainPage.cityInfo.temperature); |
| | | |
| | | bodyView.btnMode.SelectedImagePath = bodyView.fhTemp.GetModeIconPath(updateTemp.GetAttrState(FunctionAttributeKey.Mode)); |
| | | bodyView.btnMode.UnSelectedImagePath = bodyView.fhTemp.GetModeIconPath(updateTemp.GetAttrState(FunctionAttributeKey.Mode), false); |
| | | bodyView.arcBar.Progress = outinTemp; |
| | |
| | | // bodyView.btnSwitch.IsSelected = false; |
| | | // bodyView.arcBar.IsOffline = true; |
| | | //} |
| | | if (bodyView.btnTemp.Text.Length > 2) |
| | | { |
| | | bodyView.btnTemp.TextSize = 44; |
| | | } |
| | | else |
| | | { |
| | | bodyView.btnTemp.TextSize = 56; |
| | | } |
| | | |
| | | |
| | | //app自己控制的不用更新,会造成跳动 |
| | |
| | | /// </summary> |
| | | void LoadEvent_TempChange() |
| | | { |
| | | if (!function.online) |
| | | if (!function.isOnline()) |
| | | { |
| | | new Tip() |
| | | { |
| | |
| | | { |
| | | function.SetAttrState(FunctionAttributeKey.SetTemp, e); |
| | | btnTemp.Text = Convert.ToDouble(function.GetAttrState(FunctionAttributeKey.SetTemp).Replace(",", ".")).ToString(); |
| | | if (btnTemp.Text.Length > 2) |
| | | { |
| | | btnTemp.TextSize = 44; |
| | | } |
| | | else |
| | | { |
| | | btnTemp.TextSize = 56; |
| | | } |
| | | }; |
| | | } |
| | | /// <summary> |