private void Action_OnStatusChange(object sender, OnStatusChangeEventArgs e) { OnStatusChange?.Invoke(sender, e); if (e.Status == PXActionStatus.Finished) { var action = (IPXAction)sender; Trace.TraceInformation($"Action [{action.context.Key}]({action.context.Url}) Finished, remove from list."); actions.Remove(action); } }
private void ActionM_OnStatusChange(object sender, OnStatusChangeEventArgs e) { var action = (IPXAction)sender; Storage.SetAction(action.context); if (e.Status == PXActionStatus.Finished) { Storage.CollectTemp(action.context); } OnStatusChange?.Invoke(sender, e); }
private void Action_OnStatusChange(object sender, OnStatusChangeEventArgs e) { WriteLog($"<{sender.GetType()}|{((IPXAction)sender).context.Url}>[{e.Status}] {e.Message}"); UpdateActionListView(); }