public static void PopulateChildren(this TreeNode tn, ScObject sco)
 {
     foreach (var child in sco.GetChildren())
     {
         tn.Nodes.Add(child.GetId().ToString(), child.GetName());
         tn.Nodes[child.GetId().ToString()].Tag = child;
         PopulateChildren(tn.Nodes[child.GetId().ToString()], child);
     }
 }
 public static void PopulateChildren(this TreeNode tn, ScObject sco)
 {
     foreach (var child in sco.GetChildren())
     {
         tn.Nodes.Add(child.GetId().ToString(), child.GetName());
         tn.Nodes[child.GetId().ToString()].Tag = child;
         PopulateChildren(tn.Nodes[child.GetId().ToString()], child);
     }
 }