示例#1
0
文件: Program.cs 项目: towplus/csharp
 public void Do()
 {
     if (MyEvent != null)
     {
         EventPublisherArgs args = new EventPublisherArgs("데이터");
         MyEvent(this, args);
     }
 }
示例#2
0
文件: Program.cs 项目: towplus/csharp
 static void doAction(object sender, EventPublisherArgs e)
 {
     Console.WriteLine("My이벤트라는 이벤트 발생...");
     Console.WriteLine("이벤트 매개변수 :" + e.myEventData);
 }