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; }
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); }