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; } }
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(); }