Example #1
0
        protected virtual void OnTheEnding(TimerEventArgs e)
        {
            EventHandler <TimerEventArgs> temp = Time;

            if (temp != null)
            {
                temp(this, e);
            }
        }
        protected virtual void OnTheEnding(TimerEventArgs e)
        {
            EventHandler<TimerEventArgs> temp = Time;
            if(temp!=null)
            {
                temp(this, e);
            }

        }
Example #3
0
 private void StudentMessage(Object sender, TimerEventArgs e)
 {
     Console.WriteLine($"{e.Message} Deadline! NOOOOOOO!");
 }
Example #4
0
 private void Ringing(Object sender, TimerEventArgs e)
 {
     Console.WriteLine($"{e.Message} Ring Ring Ring!");
 }
 private void Ringing(Object sender,TimerEventArgs e)
 {
     Console.WriteLine($"{e.Message} Ring Ring Ring!");
 } 
 private void StudentMessage(Object sender,TimerEventArgs e)
 {
     Console.WriteLine($"{e.Message} Deadline! NOOOOOOO!");
 }