예제 #1
0
 private void FireTaskNotification(object sender, TaskNotificationEventArgs e)
 {
     if (InvokeRequired)
     {
         FireTaskNotificationCallback d = new FireTaskNotificationCallback(FireTaskNotification);
         this?.Invoke(d, new object[] { sender, e });
     }
     else
     {
         TaskNotification?.Invoke(sender, e);
     }
 }
예제 #2
0
 private void Runner_TaskNotification(object sender, TaskNotificationEventArgs e)
 {
     FireTaskNotification(sender, e);
 }