예제 #1
0
 public void Run()
 {
     SimpleEventClass se = new SimpleEventClass();
     Console.WriteLine("Created event");
     se.simpleEvent += se_simpleEvent;
     Console.WriteLine("Subscribed");
     Console.WriteLine("I will fire 10 events just now !");
     se.Start();
 }
예제 #2
0
        public void Run()
        {
            SimpleEventClass se = new SimpleEventClass();

            Console.WriteLine("Created event");
            se.simpleEvent += se_simpleEvent;
            Console.WriteLine("Subscribed");
            Console.WriteLine("I will fire 10 events just now !");
            se.Start();
        }