黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
@@ -245,6 +245,9 @@
                    }
                }
                //读取设备的其他信息
                this.ReadDeviceOtherInfo(listDevice);
                //目前就弄一个
                HdlThreadLogic.Current.RunMain(() =>
                {
@@ -546,6 +549,35 @@
        #endregion
        #region ■ 一般方法___________________________
        /// <summary>
        /// 读取设备的其他信息
        /// </summary>
        /// <param name="listDevice"></param>
        private void ReadDeviceOtherInfo(List<CommonDevice> listDevice)
        {
            var myTypeInfo = HdlDeviceCommonLogic.Current.GetMyDeviceEnumInfo(listDevice);
            if (myTypeInfo.BeloneType == DeviceBeloneType.A窗帘 && listDevice[0] is Rollershade)
            {
                HdlThreadLogic.Current.RunThread(async () =>
                {
                    for (int i = 1; i <= 3; i++)
                    {
                        //重置窗帘
                        var result = await HdlDeviceCurtainLogic.Current.RestoreCurtain((Rollershade)listDevice[0], i != 3 ? ShowErrorMode.NO : ShowErrorMode.YES);
                        if (result == true)
                        {
                            return;
                        }
                        await System.Threading.Tasks.Task.Delay(1000);
                    }
                });
            }
        }
        #endregion
        #region ■ 结构体_____________________________
        /// <summary>