Exemplo 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);
        }
Exemplo n.º 2
0
 public void Beat(Model sender, BeatEventArgs e)
 {
     this.Text = e.BeatsPerMinute.ToString();
 }