Example #1
0
 public static void Fire <TSender>(this EventHandlerSender <TSender> eventHandler, TSender sender)
 {
     if (eventHandler != null)
     {
         eventHandler(sender, EventArgs.Empty);
     }
 }
Example #2
0
 public static void Notify <TSender> (this EventHandlerSender <TSender> handler, TSender sender)
 {
     if (handler != null)
     {
         handler(sender);
     }
 }