| | |
| | | d.Add(FunctionAttributeKey.Mode, m); |
| | | Control.Ins.SendWriteCommand(device, d); |
| | | dialog.Close(); |
| | | if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan") |
| | | if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan" || device.GetAttrState(FunctionAttributeKey.Mode) == "dry") |
| | | { |
| | | |
| | | setTempBar.IsClickable = false; |
| | |
| | | if (device.trait_on_off.curValue.ToString() == "on") |
| | | { |
| | | btnMode.IsSelected = btnSwing.IsSelected = btnWindSpeed.IsSelected = true; |
| | | setTempBar.Enable = true; |
| | | //setTempBar.Enable = true; |
| | | setTempBar.ProgressBarColor = CSS_Color.MainColor; |
| | | |
| | | btnSwitch.IsSelected = true; |
| | | if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan") |
| | | { |
| | | setTempBar.IsClickable = false; |
| | | } |
| | | else |
| | | { |
| | | setTempBar.IsClickable = true; |
| | | } |
| | | //if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan") |
| | | //{ |
| | | // setTempBar.IsClickable = false; |
| | | //} |
| | | //else |
| | | //{ |
| | | // setTempBar.IsClickable = true; |
| | | //} |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | setTempBar.IsClickable = false; |
| | | } |
| | | |
| | | if (device.GetAttrState(FunctionAttributeKey.Mode) == "dry") |
| | | if (device.GetAttrState(FunctionAttributeKey.Mode) == "dry" || device.GetAttrState(FunctionAttributeKey.Mode) == "fan") |
| | | { |
| | | setTempBar.IsOffline = true; |
| | | setTempBar.IsClickable = false; |
| | | |
| | | }else |
| | | { |
| | | setTempBar.IsOffline = false; |
| | | setTempBar.IsClickable = true; |
| | | } |
| | | } |
| | | |