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