old mode 100644
new mode 100755
| | |
| | | } |
| | | } |
| | | else |
| | | {
|
| | | // 获取楼层对应对房间
|
| | | { |
| | | // 获取楼层对应对房间 |
| | | var listAllRoom = HdlRoomLogic.Current.GetAllListRooms(); |
| | | foreach (var room in listAllRoom) |
| | | { |
| | |
| | | /// <returns></returns> |
| | | List<CommonDevice> GetALlDispalyRoomDeviceList() |
| | | { |
| | | currentKeyAllRoomDeviceList.Clear();
|
| | | currentKeyAllRoomDeviceList.Clear(); |
| | | var listAllRoom = HdlRoomLogic.Current.GetAllListRooms(); |
| | | switch (curDeviceBindType) |
| | | { |
| | |
| | | if (r.IsLove == true) |
| | | { |
| | | continue; |
| | | }
|
| | | } |
| | | foreach (var deviceKeys in r.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | |
| | | switch (curDeviceBindType) |
| | | { |
| | | case "AddSwitch": |
| | | foreach (var deviceKeys in curRoom.ListDevice)
|
| | | {
|
| | | var device = LocalDevice.Current.GetDevice(deviceKeys);
|
| | | foreach (var deviceKeys in curRoom.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | | if (device != null) |
| | | { |
| | | var dev = device.InClusterList.Find(obj => (obj != null) && (obj.InCluster == 6)); |
| | |
| | | } |
| | | } |
| | | break; |
| | | case "AddDimmer":
|
| | | foreach (var deviceKeys in curRoom.ListDevice)
|
| | | {
|
| | | var device = LocalDevice.Current.GetDevice(deviceKeys);
|
| | | case "AddDimmer": |
| | | foreach (var deviceKeys in curRoom.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | | if (device != null) |
| | | { |
| | | var dev = device.InClusterList.Find(obj => (obj != null) && (obj.InCluster == 8)); |
| | |
| | | } |
| | | } |
| | | break; |
| | | case "AddCurtain":
|
| | | foreach (var deviceKeys in curRoom.ListDevice)
|
| | | {
|
| | | var device = LocalDevice.Current.GetDevice(deviceKeys);
|
| | | case "AddCurtain": |
| | | foreach (var deviceKeys in curRoom.ListDevice) |
| | | { |
| | | var device = LocalDevice.Current.GetDevice(deviceKeys); |
| | | if (device != null) |
| | | { |
| | | var dev = device.InClusterList.Find(obj => (obj != null) && (obj.InCluster == 258)); |
| | |
| | | btnMethodText.IsSelected = true; |
| | | oldbuttonText.TextColor = Shared.Common.ZigbeeColor.Current.XMBlack; |
| | | oldbuttonText.IsBold = true; |
| | | }
|
| | |
|
| | | //获取楼层对应的房间
|
| | | } |
| | | |
| | | //获取楼层对应的房间 |
| | | var listAllRoom = HdlRoomLogic.Current.GetAllListRooms(); |
| | | foreach (var room in listAllRoom) |
| | | { |