Exemplo n.º 1
0
 void bind()
 {
     foreach (string t in childnodeText)
     {
         Type         nodeType  = typeof(TreeNodeBase).Assembly.GetType("EJClient.TreeNode." + t + "Node");
         TreeNodeBase childnode = (TreeNodeBase)Activator.CreateInstance(nodeType, new object[] { this });
         childnode.Name = t;
         this.Children.Add(childnode);
         childnode.ReBindItems();
     }
 }