internal LightBulbProperties(LightBulb lightBulbFromWhichToSetAll)
        {
            Bool trueBool = PlatformConverter.ToPlatformBool(true);

            SetBrightness           = trueBool;
            SetBrightnessPercentage = trueBool;
            SetHue                  = trueBool;
            SetSaturation           = trueBool;
            SetSaturationPercentage = trueBool;
            SetXY = trueBool;
            SetColorTemperature = trueBool;

            Brightness           = lightBulbFromWhichToSetAll.Brightness;
            BrightnessPercentage = lightBulbFromWhichToSetAll.BrightnessPercentage;
            Hue                  = lightBulbFromWhichToSetAll.Hue;
            Saturation           = lightBulbFromWhichToSetAll.Saturation;
            SaturationPercentage = lightBulbFromWhichToSetAll.SaturationPercentage;
            XY = lightBulbFromWhichToSetAll.XY.ToArray();
            ColorTemperature = lightBulbFromWhichToSetAll.ColorTemperature;
        }
Ejemplo n.º 2
0
 internal LightBulbPropertiesChangedEventArgs(LightBulb lightBulb)
 {
     Index    = lightBulb.Index;
     Id       = lightBulb.Id;
     UniqueId = lightBulb.UniqueId;
 }