private void treeView1_BeforeExpand(object sender, System.Windows.Forms.TreeViewCancelEventArgs e) { TreeNode node = e.Node; if (node.Nodes[0].Text.Equals("")) //Khong phai luc na`o expand cung them vao tree (vi se lam cham chuong trinh) { tree.FillOneLevelNode(node, (AIONode)(node.Tag)); } }
private void treeView1_BeforeExpand(object sender, System.Windows.Forms.TreeViewCancelEventArgs e) { TreeNode node = e.Node; tree.FillOneLevelNode(node, (AIONode)(node.Tag)); }