| | |
| | | List<string> devicetypelist = new List<string>(); |
| | | devicetypelist.Clear(); |
| | | |
| | | var lightjosn = devicelist.Find((device) => device.Type == DeviceType.DimmableLight || device.Type == DeviceType.OnOffOutput); |
| | | var lightjosn = devicelist.Find((device) => device.Type == DeviceType.DimmableLight || device.Type == DeviceType.OnOffOutput || device.Type == DeviceType.ColorTemperatureLight); |
| | | if (lightjosn != null) |
| | | { |
| | | devicetypelist.Add(Language.StringByID(MyInternationalizationString.Lights)); |
| | |
| | | { |
| | | DeviceTypeList.Add(DeviceType.OnOffOutput);//0x0101十进制257 |
| | | DeviceTypeList.Add(DeviceType.DimmableLight); |
| | | DeviceTypeList.Add(DeviceType.ColorTemperatureLight); |
| | | } |
| | | else if (devicetype == Language.StringByID(MyInternationalizationString.Curtains)) |
| | | { |
| | |
| | | selectedpatm = "ZigeeLogic/selectedairswitch.png"; |
| | | } |
| | | break; |
| | | case DeviceType.ColorTemperatureLight: |
| | | { |
| | | patm = "ZigeeLogic/nightLight.png"; |
| | | selectedpatm = "ZigeeLogic/nightLightSelected.png"; |
| | | } |
| | | break; |
| | | } |
| | | button.UnSelectedImagePath = patm; |
| | | button.SelectedImagePath = selectedpatm; |
| | |
| | | deviceTypeList.Add(DeviceType.WindowCoveringDevice); |
| | | deviceTypeList.Add(DeviceType.Thermostat); |
| | | deviceTypeList.Add(DeviceType.AirSwitch); |
| | | deviceTypeList.Add(DeviceType.ColorTemperatureLight); |
| | | ///门锁特殊 |
| | | // deviceTypeList.Add(DeviceType.DoorLock); |
| | | } |
| | |
| | | deviceTypeList.Add(DeviceType.WindowCoveringDevice); |
| | | deviceTypeList.Add(DeviceType.Thermostat); |
| | | deviceTypeList.Add(DeviceType.AirSwitch); |
| | | deviceTypeList.Add(DeviceType.ColorTemperatureLight); |
| | | ///门锁特殊 |
| | | // deviceTypeList.Add(DeviceType.DoorLock); |
| | | } |