| | |
| | | this.btnMode2.CanClick = this.airFreshData.Open; |
| | | |
| | | //风速 |
| | | if (this.airFreshData.Fan == "level_3") |
| | | if (this.airFreshData.Fan == "level_3" || this.airFreshData.Fan == "high") |
| | | { |
| | | this.btnFan.UnSelectedImagePath = "FunctionIcon/AirFresh/Fan3.png"; |
| | | this.btnFan.SelectedImagePath = "FunctionIcon/AirFresh/Fan3Select.png"; |
| | | this.btnFanView.Text = this.dicText["3档"]; |
| | | } |
| | | else if(this.airFreshData.Fan == "level_2") |
| | | else if(this.airFreshData.Fan == "level_2" || this.airFreshData.Fan == "medium") |
| | | { |
| | | this.btnFan.UnSelectedImagePath = "FunctionIcon/AirFresh/Fan2.png"; |
| | | this.btnFan.SelectedImagePath = "FunctionIcon/AirFresh/Fan2Select.png"; |
| | |
| | | /// <param name="comadValue">命令</param> |
| | | private void SendOtherComand(IconViewControl btnIcon, string comadKey, string comadValue) |
| | | { |
| | | if (!device.online) |
| | | { |
| | | new Tip() |
| | | { |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.DeviceOfflineCannotOption), |
| | | Direction = AMPopTipDirection.None, |
| | | }.Show(MainPage.BaseView); |
| | | } |
| | | //if (!device.online) |
| | | //{ |
| | | // new Tip() |
| | | // { |
| | | // CloseTime = 1, |
| | | // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), |
| | | // Direction = AMPopTipDirection.None, |
| | | // }.Show(MainPage.BaseView); |
| | | //} |
| | | btnIcon.CanClick = false; |
| | | |
| | | HdlThreadLogic.Current.RunThread(() => |
| | |
| | | /// </summary> |
| | | private void SendSwitchComand() |
| | | { |
| | | if (!device.online) |
| | | { |
| | | new Tip() |
| | | { |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.DeviceOfflineCannotOption), |
| | | Direction = AMPopTipDirection.None, |
| | | }.Show(MainPage.BaseView); |
| | | } |
| | | //if (!device.online) |
| | | //{ |
| | | // new Tip() |
| | | // { |
| | | // CloseTime = 1, |
| | | // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), |
| | | // Direction = AMPopTipDirection.None, |
| | | // }.Show(MainPage.BaseView); |
| | | //} |
| | | this.btnSwitch.CanClick = false; |
| | | |
| | | string statu = this.btnSwitch.IsSelected == true ? "off" : "on"; |