| | |
| | | { |
| | | return Language.StringByID(R.MyInternationalizationString.Close); |
| | | } |
| | | return $"{(int)((device as DimmableLight).Level * 1.0 / 254 * 100)}%"; |
| | | return HdlDeviceCommonLogic.Current.CalculateLightLevelPersent((device as DimmableLight).Level) + "%"; |
| | | } |
| | | else if (device.Type == DeviceType.ColorTemperatureLight) |
| | | { |
| | |
| | | { |
| | | return Language.StringByID(R.MyInternationalizationString.Close); |
| | | } |
| | | return $"{(int)((device as ColorTemperatureLight).Level * 1.0 / 254 * 100)}%"; |
| | | return HdlDeviceCommonLogic.Current.CalculateLightLevelPersent((device as ColorTemperatureLight).Level) + "%"; |
| | | } |
| | | else if (device.Type == DeviceType.WindowCoveringDevice) |
| | | { |