| | |
| | | } |
| | | else |
| | | { |
| | | btnTemp.Text = setTempAttr.curValue.ToString(); |
| | | if (setTempAttr.curValue.ToString().Contains(".")) |
| | | { |
| | | btnTemp.Text = setTempAttr.curValue.ToString().Split(".")[0]; |
| | | }else |
| | | { |
| | | btnTemp.Text = setTempAttr.curValue.ToString(); |
| | | } |
| | | } |
| | | btnTemp.Width = btnTemp.GetTextWidth(); |
| | | FrameWhiteCentet1.AddChidren(btnTemp); |
| | |
| | | { |
| | | btnSwitch.IsSelected = true; |
| | | //setTempBar.IsOffline = false; |
| | | setTempBar.Enable = true; |
| | | setTempBar.ProgressBarColor = CSS_Color.MainColor; |
| | | //setTempBar.Enable = true; |
| | | //setTempBar.ProgressBarColor = CSS_Color.MainColor; |
| | | } |
| | | else |
| | | { |
| | | btnSwitch.IsBold = false; |
| | | //setTempBar.IsOffline = true; |
| | | setTempBar.Enable = false; |
| | | setTempBar.ProgressBarColor = CSS_Color.DividingLineColor; |
| | | //setTempBar.Enable = false; |
| | | //setTempBar.ProgressBarColor = CSS_Color.DividingLineColor; |
| | | } |
| | | System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, device.trait_on_off.curValue.ToString()); |