| | |
| | | bodyView.btnTemp.Text = uFh.trait_temp.curValue.ToString(); |
| | | bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(uFh.trait_IndoorTemp.curValue)) + "°C"; |
| | | bodyView.btnMode.UnSelectedImagePath = uFh.curModeImage; |
| | | if (uFh.refreshTime.AddMilliseconds(1000) < DateTime.Now) |
| | | { |
| | | bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uFh.trait_temp.curValue)); |
| | | } |
| | | bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uFh.trait_temp.curValue)); |
| | | if (uFh.trait_on_off.curValue.ToString() == "on") |
| | | { |
| | | bodyView.arcBar.ThumbImagePath = "FunctionIcon/AC/DiyThumbIconOn.png"; |
| | |
| | | btnCollection.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | btnCollection.IsSelected = fh.collect = btnCollection_Out.IsSelected = !btnCollection.IsSelected; |
| | | fh.SaveFunctionData(true); |
| | | fh.CollectFunction(); |
| | | }; |
| | | } |
| | | |