Exemplo n.º 1
0
 public void OnTrigger(WorkflowBase pSource)
 {
     if (this.trigger != null)
     {
         trigger(pSource);
     }
 }
Exemplo n.º 2
0
 public void OnTriggered(WorkflowBase w)
 {
     if (w is AssemblyZone)
     {
         Console.WriteLine("Triggered AssemblyZone " + w.Id + " Trigger-Message is: " + w.TriggerMessage);
         AssemblyZoneTriggered(w as AssemblyZone);
     }
     else if (w is Box)
     {
         Console.WriteLine("Triggered Box " + w.Id + " Trigger-Message is: " + w.TriggerMessage);
         BoxTriggered(w as Box);
     }
 }