public override ConfigNodeViewModel clone()
 {
     MultiValuedItemConfigViewModel newItem = new MultiValuedItemConfigViewModel(m_appViewModel
         , parent as MultiValuedConfigViewModel
         , nodeDefinition, parent.xPath);
     foreach (ConfigNodeViewModel child in children)
     {
         ConfigNodeViewModel clonedChild = child.clone();
         clonedChild.parent = newItem;
         newItem.children.Add(clonedChild);
     }
     return newItem;
 }
Example #2
0
        public override ConfigNodeViewModel clone()
        {
            MultiValuedItemConfigViewModel newItem = new MultiValuedItemConfigViewModel(m_parentExperiment
                                                                                        , parent as MultiValuedConfigViewModel
                                                                                        , nodeDefinition, parent.xPath);

            foreach (ConfigNodeViewModel child in children)
            {
                ConfigNodeViewModel clonedChild = child.clone();
                clonedChild.parent = newItem;
                newItem.children.Add(clonedChild);
            }
            return(newItem);
        }
 public void removeChild(MultiValuedItemConfigViewModel child)
 {
     children.Remove(child);
 }
 public void removeChild(MultiValuedItemConfigViewModel child)
 {
     children.Remove(child);
 }