wxr
2022-03-11 b079d370b3c23751a5d200dc2d25f6c80977b4d4
HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaFanPage.cs
@@ -98,6 +98,9 @@
            this.RefreshFormStatu(false);
            //档
            var strView = Language.StringByID(StringId.Gear);
            if (device.online)
            {
            seekBarContr.ProgressChangedEvent += (div, value) =>
            {
                this.btnNowGear.Text = value + strView;
@@ -112,6 +115,7 @@
                    this.SendSpeedComand(value);
                }
            };
            }
        }
        #endregion
@@ -175,6 +179,16 @@
        /// </summary>
        private void SendSwitchComand()
        {
            if (!device.online)
            {
                new Tip()
                {
                    CloseTime = 1,
                    Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
                    Direction = AMPopTipDirection.None,
                }.Show(MainPage.BaseView);
                return;
            }
            this.btnSwitch.CanClick = false;
            string statu = this.btnSwitch.IsSelected == true ? "off" : "on";
@@ -195,6 +209,7 @@
        /// </summary>
        private void SendSpeedComand(int value)
        {
            var dic = new Dictionary<string, string>();
            dic.Add("fan_speed_percent", value.ToString());
            Control.Ins.SendWriteCommand(this.device, dic, true);