Exemplo n.º 1
0
 public void Do()
 {
     if (MyEvent != null)
     {
         MyEvent(null, null);
     }
     if (MyEvent2 != null)
     {
         EventPublisherArgs args = new EventPublisherArgs("데이터");
         MyEvent2(this, this, args);
     }
 }
Exemplo n.º 2
0
 static void doAction(object sender, object sender2, EventPublisherArgs e)
 {
     Console.WriteLine("MyEvent2라는 이벤트 발생(e : {0})", e.myEventData);
 }