示例#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();
        }
示例#2
0
 private void StopParty_Click(object sender, EventArgs e)
 {
     RedTimer.Stop();
     GreenTimer.Stop();
     BlueTimer.Stop();
 }