Esempio n. 1
0
        private void ResetColors_Click(object sender, EventArgs e)
        {
            red   = 255;
            green = 255;
            blue  = 255;

            RedSlider.Value   = red;
            GreenSlider.Value = green;
            BlueSlider.Value  = blue;

            RedBox.BackColor   = Color.FromArgb(red, 0, 0);
            GreenBox.BackColor = Color.FromArgb(0, green, 0);
            BlueBox.BackColor  = Color.FromArgb(0, 0, blue);
            this.BackColor     = Color.FromArgb(red, green, blue);
            RedTimer.Stop();
            BlueTimer.Stop();
            GreenTimer.Stop();
        }
Esempio n. 2
0
 private void StopParty_Click(object sender, EventArgs e)
 {
     RedTimer.Stop();
     GreenTimer.Stop();
     BlueTimer.Stop();
 }
Esempio n. 3
0
 private void GreenTimerStart_Click(object sender, EventArgs e)
 {
     greenInterval       = rand.Next(1, 30);
     GreenTimer.Interval = greenInterval;
     GreenTimer.Start();
 }
Esempio n. 4
0
 private void GreenTimerStart_Click(object sender, EventArgs e)
 {
     GreenTimer.Interval = 20;
     GreenTimer.Start();
 }