public override BaseElement Clone() { StartEvent clone = new StartEvent(); clone.SetValues(this); return(clone); }
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()); } } }