Beispiel #1
0
 // Invoke the Beat event
 public virtual void OnBeat(BeatEventArgs e)
 {
     if (Beat != null)
     {
         Beat(this, e);
     }
 }
Beispiel #2
0
 // Invoke the Beat event
 public virtual void OnBeat(BeatEventArgs e)
 {
     if (Beat != null)
     {
         Beat(this, e);
     }
 }
Beispiel #3
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);
        }
        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);
        }
Beispiel #5
0
 public void Beat(Model sender, BeatEventArgs e)
 {
     this.Text = e.BeatsPerMinute.ToString();
 }
Beispiel #6
0
 public void Beat(Model sender, BeatEventArgs e)
 {
     Text = e.BeatsPerMinute.ToString();
 }