Ejemplo n.º 1
0
 private void btnColor_Click(object sender, EventArgs e)
 {
     if (this.cdButtonColor.ShowDialog() == DialogResult.OK)
     {
         this.buttonColorAnimation    = null;
         this.btnSave.BackColor       = this.originalBackColor;
         Settings.Default.buttonColor = this.cdButtonColor.Color;
     }
 }
Ejemplo n.º 2
0
        private void timFlasher_Tick(object sender, EventArgs e)
        {
            if (this.buttonColorAnimation == null)
            {
                this.buttonColorAnimation = new ColorAnimationLoop(this.btnSave.BackColor, Settings.Default.buttonColor, 30, ColorAnimationLoop.LoopType.ForwardBack);
            }

            this.btnSave.BackColor = this.buttonColorAnimation.GetNextColor();
        }