old mode 100644
new mode 100755
| | |
| | | } |
| | | } |
| | | break; |
| | | case DeviceType.WindowCoveringDevice: |
| | | case DeviceType.WindowCoveringDevice:
|
| | | var rollerShape = deviceUI.CommonDevice as Rollershade; |
| | | //记录回复时间 |
| | | rollerShape.LastDateTime = DateTime.Now; |
| | | rollerShape.IsOnline = (common as Rollershade).IsOnline; |
| | | for (int j = 0; j < rowLayout.ChildrenCount; j++) |
| | | { |
| | | {
|
| | | var tempView = rowLayout.GetChildren(j); |
| | | if (tempView.Tag == null) |
| | | { |
| | |
| | | if (deviceUI.CommonDevice.Type == ZigBee.Device.DeviceType.OnOffOutput) |
| | | { |
| | | //灯 |
| | | var light = deviceUI.CommonDevice as ZigBee.Device.ToggleLight; |
| | | //补上非远程 |
| | | if (light.Gateway == null) |
| | | { |
| | | continue; |
| | | var light = deviceUI.CommonDevice as ZigBee.Device.ToggleLight;
|
| | | //补上非远程
|
| | | if (light.Gateway == null)
|
| | | {
|
| | | continue;
|
| | | } |
| | | if (light.Gateway.IsVirtual) |
| | | { |
| | |
| | | tList.Add($"{i} {Language.StringByID(R.MyInternationalizationString.Second)}"); |
| | | } |
| | | //int beforeIndex = (int)(sender as CommonForm.RowLayoutEditButton).Tag; |
| | | PickerView.Show(tList, (obj) => |
| | | PickerView.Show(tList, (obj) =>
|
| | | { |
| | | var tempRoom = Shared.Common.Room.GetRoomByFilePath(sceneRoomUI.room.FileName); |
| | | if (tempRoom == null) |
| | |
| | | { |
| | | if (ss.Id == sceneRoomUI.sceneUI.Id) |
| | | { |
| | | ss.SceneDelayTime = int.Parse(obj.Split(' ')[0]); |
| | | ss.SceneDelayTime = int.Parse(tList[obj].Split(' ')[0]); |
| | | sceneRoomUI.room.Save(); |
| | | RefreshBodyView(); |
| | | return; |
| | | } |
| | | } |
| | | }, Language.StringByID(R.MyInternationalizationString.Confrim), tList[(int)(sender as CommonForm.RowLayoutEditButton).Tag]); |
| | | },0,"", Language.StringByID(R.MyInternationalizationString.Confrim), tList[(int)(sender as CommonForm.RowLayoutEditButton).Tag]); |
| | | }; |
| | | } |
| | | } |