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); } }
private void Runner_TaskNotification(object sender, TaskNotificationEventArgs e) { FireTaskNotification(sender, e); }