Example #1
0
 public void HandleCustomEvent(object sender, CustomEventArgs e)
 {
     Console.WriteLine(name + " received message: {0}", e.Message);
 }
Example #2
0
 protected virtual void OnRaiseCustomEvent(CustomEventArgs e)
 {
     EventHandler<CustomEventArgs> handler = CustomEvent;
     if (handler != null) handler(this, e);
 }