Exemple #1
0
        private void CosmoColorChange_Click(object sender, RoutedEventArgs e)
        {
            EnttecStatus();

            if (ColorThreadStartet)
            {
                CT.Abort();
                ColorThreadStartet = false;
            }

            var currentLights = GetCurrentLights();

            foreach (var currentLight in currentLights)
            {
                OpenDMX.setDmxValue(currentLight.StartChannel + currentLight.IntensityOffset, 255);

                var red = new BaseClass.Objects.LightDefinitions.Color();
                red.ColorName  = "Red";
                red.ColorValue = 6;
                currentLight.Colors.Add(red);

                var green = new BaseClass.Objects.LightDefinitions.Color();
                green.ColorName  = "Green";
                green.ColorValue = 15;
                currentLight.Colors.Add(green);

                var blue = new BaseClass.Objects.LightDefinitions.Color();
                blue.ColorName  = "Blue";
                blue.ColorValue = 20;
                currentLight.Colors.Add(blue);
            }

            CosmoColorChange = true;
            CosmoColorChangeShow(currentLights);
        }
Exemple #2
0
        private void CosmoColorWhite_Click(object sender, RoutedEventArgs e)
        {
            EnttecStatus();

            var currentLights = GetCurrentLights();

            foreach (var currentLight in currentLights)
            {
                currentLight.Colors.Clear();

                var c = new BaseClass.Objects.LightDefinitions.Color();
                c.ColorName  = "White";
                c.ColorValue = 25;
                currentLight.Colors.Add(c);

                OpenDMX.setDmxValue(currentLight.StartChannel + currentLight.IntensityOffset, 255);

                //BaseClass.Logic.LightControl.SetColors(currentLight.StartChannel + currentLight.AllLedsOffset, new List<string> { "Red" });
            }
            CosmoColorChange = true;

            Shows.Shows.CosmoColorChangeShow(currentLights);
        }