コード例 #1
0
        /// <summary>
        /// This no longer clones the incoming trigger. If your trigger will be reused on other
        /// transitions, be sure to feed a copy in rather than the original instance.
        /// </summary>
        /// <param name="trigger"></param>
        public void UseTrigger(IUmlTrigger trigger)
        {
            if (trigger == null)
            {
                return;
            }

            Triggers.Add(trigger);
            trigger.Tripped += HandleTriggerTripped;
        }
コード例 #2
0
        public void UseRuntimeTrigger(IUmlTrigger trigger)
        {
            if (!_isEditable)
            {
                throw new ActivityMachineException("Assembly can only be done while the machine is in an edit mode.");
            }
            RuntimeTriggers.Add(trigger);

            if (trigger is UmlTrigger)
            {
                (trigger as UmlTrigger).LogType = LogType;
            }
        }
コード例 #3
0
 public void UseExecuteTrigger(IUmlTrigger trigger)
 {
     ExecuteTriggers.Add(trigger);
 }