예제 #1
0
파일: Model.cs 프로젝트: sidiqahmed/GoF
 // Invoke the Beat event
 public virtual void OnBeat(BeatEventArgs e)
 {
     if (Beat != null)
     {
         Beat(this, e);
     }
 }
예제 #2
0
파일: Model.cs 프로젝트: ronymaychan/demos
 // Invoke the Beat event
 public virtual void OnBeat(BeatEventArgs e)
 {
     if (Beat != null)
     {
         Beat(this, e);
     }
 }
예제 #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);
        }
예제 #5
0
 public void Beat(Model sender, BeatEventArgs e)
 {
     this.Text = e.BeatsPerMinute.ToString();
 }
예제 #6
0
 public void Beat(Model sender, BeatEventArgs e)
 {
     Text = e.BeatsPerMinute.ToString();
 }