Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public IHierarchyObject GetCopy()
        {
            PeriodInterval periodInterval = new PeriodInterval();

            periodInterval.name     = "Copy Of " + this.name;
            periodInterval.position = -1;
            periodInterval.parent   = null;

            foreach (PeriodInterval child in this.childrenListChangeHandler.Items)
            {
                IHierarchyObject copy = child.GetCopy();
                periodInterval.AddChild(copy);
            }
            return(periodInterval);
        }