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