Exemplo n.º 1
0
 public static void SafeInvokeAction(this AsyncWorkAction action, AsyncWorkControl workControl)
 {
     if (action != null)
     {
         action(workControl);
     }
 }
Exemplo n.º 2
0
 public static void SafeInvokeAction <TEventArgs>(this AsyncWorkEventHandler <TEventArgs> action, AsyncWorkControl workControl, TEventArgs e) where TEventArgs : EventArgs
 {
     if (action != null)
     {
         action(workControl, e);
     }
 }