Exemple #1
0
        /// <summary>
        /// Copy return the complete ActionMap while reassigning the JsN Tag
        /// </summary>
        /// <param name="newJsList">The JsN reassign list</param>
        /// <returns>The ActionMap copy with reassigned input</returns>
        public ActionMapCls ReassignJsN(JsReassingList newJsList)
        {
            var newMap = new ActionMapCls(this);

            foreach (ActionCls ac in this)
            {
                newMap.Add(ac.ReassignJsN(newJsList)); // creates the deep copy of the tree
            }

            return(newMap);
        }
Exemple #2
0
        /// <summary>
        /// Copy return the complete ActionMap while reassigning the JsN Tag
        /// </summary>
        /// <param name="newJsList">The JsN reassign list</param>
        /// <returns>The ActionMap copy with reassigned input</returns>
        public ActionMapCls ReassignJsN(JsReassingList newJsList)
        {
            ActionMapCls newMap = new ActionMapCls( );

            // full copy from 'this'
            newMap.name = this.name;

            foreach (ActionCls ac in this)
            {
                newMap.Add(ac.ReassignJsN(newJsList));
            }

            return(newMap);
        }