コード例 #1
0
        public override BaseElement Clone()
        {
            StartEvent clone = new StartEvent();

            clone.SetValues(this);
            return(clone);
        }
コード例 #2
0
        public void SetValues(StartEvent otherEvent)
        {
            base.SetValues(otherEvent);
            initiator      = otherEvent.Initiator;
            formKey        = otherEvent.FormKey;
            isInterrupting = otherEvent.IsInterrupting;

            formProperties = new List <FormProperty>();
            if (otherEvent.FormProperties != null && otherEvent.FormProperties.Count > 0)
            {
                foreach (FormProperty property in otherEvent.FormProperties)
                {
                    formProperties.Add((FormProperty)property.Clone());
                }
            }
        }