Пример #1
0
 internal ArtemisDevice(IRGBDevice rgbDevice, Plugin plugin, ArtemisSurface surface, DeviceEntity deviceEntity)
 {
     RgbDevice    = rgbDevice;
     Plugin       = plugin;
     Surface      = surface;
     DeviceEntity = deviceEntity;
     Leds         = rgbDevice.Select(l => new ArtemisLed(l, this)).ToList().AsReadOnly();
 }
Пример #2
0
        internal ArtemisDevice(IRGBDevice rgbDevice, Plugin plugin, ArtemisSurface surface)
        {
            RgbDevice    = rgbDevice;
            Plugin       = plugin;
            Surface      = surface;
            DeviceEntity = new DeviceEntity();
            Leds         = rgbDevice.Select(l => new ArtemisLed(l, this)).ToList().AsReadOnly();

            Rotation = 0;
            Scale    = 1;
            ZIndex   = 1;

            ApplyToEntity();
            CalculateRenderProperties();
        }