public override ConfigNodeViewModel clone()
 {
     BranchConfigViewModel newBranch = new BranchConfigViewModel(m_appViewModel,parent
         ,nodeDefinition,parent.xPath,null, false);
     foreach (ConfigNodeViewModel child in children)
     {
         ConfigNodeViewModel clonedChild = child.clone();
         clonedChild.parent = newBranch;
         newBranch.children.Add(clonedChild);
     }
     return newBranch;
 }
Пример #2
0
        public override ConfigNodeViewModel clone()
        {
            BranchConfigViewModel newBranch = new BranchConfigViewModel(m_parentExperiment, parent,
                                                                        nodeDefinition, parent.xPath, null, false);

            foreach (ConfigNodeViewModel child in children)
            {
                ConfigNodeViewModel clonedChild = child.clone();
                clonedChild.parent = newBranch;
                newBranch.children.Add(clonedChild);
            }
            return(newBranch);
        }