Пример #1
0
        //public abstract FlowElement Clone();

        public void SetValues(FlowElement otherElement)
        {
            base.SetValues(otherElement);
            name          = otherElement.Name;
            documentation = otherElement.Documentation;

            executionListeners = new List <ActivitiListener>();
            if (otherElement.GetExecutionListeners() != null && otherElement.GetExecutionListeners().Count > 0)
            {
                foreach (ActivitiListener listener in otherElement.GetExecutionListeners())
                {
                    executionListeners.Add((ActivitiListener)listener.Clone());
                }
            }
        }