Exemplo n.º 1
0
 void GetSelectionRecursive(EntityShape entity, List<BoneProxyShape> list, TreeNodeCollection nodes)
 {
     if (nodes == null)
     return;
       foreach (TreeNode node in nodes)
       {
     GetSelectionRecursive(entity, list, node.Nodes);
     if (!node.Checked)
       continue;
     if (node.Tag != null) // shapes that were previously in the list, are stored in the tag value
       list.Add((BoneProxyShape)node.Tag);
     else
     {
       entity.CreateBoneProxyShape(node.Text, false);
     }
       }
 }