示例#1
0
 public void Stop(IPXTrigger trigger)
 {
     if (trigger != null && trigger.context.Status == PXTriggerStatus.Running)
     {
         trigger.Stop();
     }
 }
示例#2
0
        public IPXTrigger Add(PXTriggerContext context)
        {
            context.PropertyChanged += Context_PropertyChanged;
            IPXTrigger newTrigger = GetTrigger(context);

            triggers.Add(newTrigger);
            return(newTrigger);
        }
示例#3
0
 public void Start(IPXTrigger trigger)
 {
     trigger.OnTrigger += Trigger_OnTrigger;
     trigger.Start();
 }