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