public void Stop(IPXTrigger trigger) { if (trigger != null && trigger.context.Status == PXTriggerStatus.Running) { trigger.Stop(); } }
public IPXTrigger Add(PXTriggerContext context) { context.PropertyChanged += Context_PropertyChanged; IPXTrigger newTrigger = GetTrigger(context); triggers.Add(newTrigger); return(newTrigger); }
public void Start(IPXTrigger trigger) { trigger.OnTrigger += Trigger_OnTrigger; trigger.Start(); }