コード例 #1
0
ファイル: MainForm.cs プロジェクト: gyphie/time-keeper
 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;
     }
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: gyphie/time-keeper
        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();
        }