public void Push(int counter1, string appointment1) { Console.WriteLine("You have set the counter as " + counter1); PushEventArgs args = new PushEventArgs() { counter = counter1, appointment = appointment1 }; OnPush(this, args); }
void TickTok(object sender, PushEventArgs args) { int times = 0; while (times < args.counter) { Console.Write("TickTok" + " "); times++; } }
void Alarm(object sender, PushEventArgs args) { Console.WriteLine("Doololololoooo"); Console.WriteLine("You have made an appointment: " + args.appointment); }