Beispiel #1
0
        private void ColorControlPanel_ColorChanged(object sender, ColorControlPanel.ColorChangedEventArgs e)
        {
            if (Mode.Colors.Count == 0)
            {
                return;
            }

            Mode.Colors[0] = new RGB.NET.Core.Color(e.CurrentColor.R, e.CurrentColor.G, e.CurrentColor.B);
            Mode.FixedColor();
        }
Beispiel #2
0
        private void ColorControlPanel_ColorChanged(object sender, ColorControlPanel.ColorChangedEventArgs e)
        {
            if (Effects.Colors.Count == 0)
            {
                return;
            }

            Effects.Colors[0] = (LEDBulb)e.CurrentColor;

            Effects.FixedColor();
        }
 private void buttons_ColorChanged(object sender, ColorControlPanel.ColorChangedEventArgs e)
 {
     ButtonsColors[BttIndex] = e.CurrentColor;
     updateBttColor();
 }