Exemple #1
0
        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);
        }
Exemple #2
0
        void TickTok(object sender, PushEventArgs args)
        {
            int times = 0;

            while (times < args.counter)
            {
                Console.Write("TickTok" + " ");
                times++;
            }
        }
Exemple #3
0
 void Alarm(object sender, PushEventArgs args)
 {
     Console.WriteLine("Doololololoooo");
     Console.WriteLine("You have made an appointment: " + args.appointment);
 }