Esempio n. 1
0
 static void Workout(object sender, clockevent e)
 {
     if (e.isthere)
     {
         Console.WriteLine("it is high time now");
     }
 }
Esempio n. 2
0
 public void guarding(string s)
 {
     while (true)
     {
         if (DateTime.Now.ToString().Equals(s))
         {
             clockevent args = new clockevent();
             args.isthere = true;
             timeup(this, args);
             break;
         }
     }
 }