コード例 #1
0
        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);
        }
コード例 #2
0
 public void OnActivityLog(ActivityLogEventArgs activityLogEventArgs)
 {
     ActivityLog?.Invoke(this, activityLogEventArgs);
 }