Esempio n. 1
0
        public void Beat(Model sender, BeatEventArgs e)
        {
            // Depending on beatsPerMinute set color anywhere 
            // between red and yellow
            int red = 255;
            int green = 255 - (e.BeatsPerMinute + 55);
            int blue = 0;

            this.BackColor = Color.FromArgb(red, green, blue);
        }
Esempio n. 2
0
 public void Beat(Model sender, BeatEventArgs e)
 {
     this.Text = e.BeatsPerMinute.ToString();
 }