示例#1
0
 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);
     }
 }
示例#2
0
        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);
        }
示例#3
0
 private void Action_OnStatusChange(object sender, OnStatusChangeEventArgs e)
 {
     WriteLog($"<{sender.GetType()}|{((IPXAction)sender).context.Url}>[{e.Status}] {e.Message}");
     UpdateActionListView();
 }