private static void UpdateNodes(System.Collections.Generic.List <StringNode> nodes, TreeNodeCollection coll)
 {
     foreach (var item in nodes)
     {
         var n = DropDownCheckTree.AddValue(coll, item.Text, item.Path);
         UpdateNodes(item.Nodes, n.Nodes);
     }
 }
 private static void UpdateNodes(List <StringNode> nodes, TreeNodeCollection coll)
 {
     foreach (var item in nodes)
     {
         try
         {
             var n = DropDownCheckTree.AddValue(coll, item.Text, item.Path);
             UpdateNodes(item.Nodes, n.Nodes);
         }
         catch (Exception e) { System.Diagnostics.Debug.WriteLine($"Unable to add node '{item.Text}': {e.Message}"); }
     }
 }