| | |
| | | { |
| | | //被绑定设备图片【可能和外面设备等图片不同,因为这里是以功能来绑定的】 |
| | | //devicePic.UnSelectedImagePath = tempDev.IconPath; |
| | | var device = LocalDevice.Current.GetDevice(bindObj.BindMacAddr, bindObj.BindEpoint); |
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(bindObj.BindMacAddr, bindObj.BindEpoint); |
| | | switch (curBindType) |
| | | { |
| | | case 1: |
| | |
| | | if (device != null) |
| | | { |
| | | //设备名字 |
| | | btnBindNameText = Common.LocalDevice.Current.GetDeviceEpointName(device); |
| | | btnBindNameText = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device); |
| | | |
| | | //获取设备所属房间 |
| | | var tempDevRoom = HdlRoomLogic.Current.GetRoomByDevice(device); |
| | |
| | | localDeviceList.Clear(); |
| | | scList.Clear(); |
| | | //设备 |
| | | foreach (var dev in Shared.Common.LocalDevice.Current.listAllDevice) |
| | | foreach (var dev in HdlDeviceCommonLogic.Current.listAllDevice) |
| | | { |
| | | localDeviceList.Add(dev); |
| | | } |
| | |
| | | switch (curBindType) |
| | | { |
| | | case 3: |
| | | var device = LocalDevice.Current.GetDevice(bindDevice.BindMacAddr, bindDevice.BindEpoint); |
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(bindDevice.BindMacAddr, bindDevice.BindEpoint); |
| | | if (device != null) |
| | | { |
| | | if (device.Type == DeviceType.DimmableLight) |