public override ConfigNodeViewModel clone()
 {
     ChoiceConfigViewModel newChoice= new ChoiceConfigViewModel(m_appViewModel, parent
         , nodeDefinition, parent.xPath, null);
     foreach (ConfigNodeViewModel child in children)
     {
         ConfigNodeViewModel clonedChild = child.clone();
         clonedChild.parent = newChoice;
         newChoice.children.Add(clonedChild);
     }
     newChoice.selectedChoiceName = selectedChoiceName;
     return newChoice;
 }
Beispiel #2
0
        public override ConfigNodeViewModel clone()
        {
            ChoiceConfigViewModel newChoice = new ChoiceConfigViewModel(m_appViewModel, parent
                                                                        , nodeDefinition, parent.xPath, null);

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