| | |
| | | }
|
| | | }
|
| | |
|
| | | //读取设备的其他信息
|
| | | this.ReadDeviceOtherInfo(listDevice);
|
| | |
|
| | | //目前就弄一个
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | |
| | |
|
| | | #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>
|