| | |
| | | } |
| | | }; |
| | | #endregion |
| | | } else if (devcieCommon.Type == DeviceType.LightSwitch || |
| | | devcieCommon.Type == DeviceType.LightEnergySocket || |
| | | devcieCommon.Type == DeviceType.LightEnergySwitch || devcieCommon.Type == DeviceType.LightSwitchSocket) { |
| | | } else if (devcieCommon.Type == DeviceType.LightSwitch |
| | | || devcieCommon.Type == DeviceType.LightEnergySocket |
| | | || devcieCommon.Type == DeviceType.LightEnergySwitch |
| | | || devcieCommon.Type == DeviceType.LightSwitchSocket) { |
| | | #region 继电器 |
| | | LightSwitch switchLight = devcieCommon as LightSwitch; |
| | | tempSwitch.IsSelected = switchLight.CurrentBrightness == 100 ? true : false; |