protected override GenericGadget GadgetCreater(GenericGadgetSettings settings)
        {
            var fixtureSettings = settings as LightingFixtureSettings;

            if (fixtureSettings == null)
            {
                throw new ArgumentException("Settings must be LightingFixtureSettings");
            }

            LightingFixture fixture;

            if (fixtureSettings.dimmingChannel.IsNotEmpty())
            {
                fixture = new LightingFixtureDimming(fixtureSettings);
            }
            else
            {
                fixture = new LightingFixture(fixtureSettings);
            }

            return(fixture);
        }
 public DimmingEquipment(GenericDeviceSettings settings, LightingFixtureDimming fixture) : base(settings)
 {
     this.fixture = fixture;
 }