示例#1
0
 /// <summary>
 /// The trigger of MyEvent class.
 /// </summary>
 public void Fire(MyEventArgs e)
 {
     somethingHappened.RaiseEvent(MyEventSender, e);
     Thread.Sleep(1);     //This is optional, but may make things more fluid.
 }