private void MActivityExecutor_ActivityLog(object sender, ActivityLogEventArgs eventArgs) { if (!Visible) { return; } if (InvokeRequired) { Invoke(new EventHandler <ActivityLogEventArgs>(MActivityExecutor_ActivityLog), sender, eventArgs); return; } AddLogText(eventArgs.IsLine ? eventArgs.Text + Environment.NewLine : eventArgs.Text); }
public void OnActivityLog(ActivityLogEventArgs activityLogEventArgs) { ActivityLog?.Invoke(this, activityLogEventArgs); }