日期:2014-05-17 浏览次数:21097 次
private void Form1_Load(object sender, EventArgs e)
{
// 建测试树
TreeNode node0 = new TreeNode();
node0.Text = "000";
TreeNode node11 = new TreeNode();
node11.Text = "aaa";
node0.Nodes.Add(node11);
TreeNode node111 = new TreeNode();
node111.Text = "111";
node11.Nodes.Add(node111);
TreeNode node112 = new TreeNode();
node112.Text = "112";
node11.Nodes.Add(node112);
TreeNode node22 = new TreeNode();
node22.Text = "bbb";
node0.Nodes.Add(node22);
TreeNode node221 = new TreeNode();
node221.Text = "221";
node22.Nodes.Add(node221);
TreeNode node222 = new TreeNode();
node222.Text = "222";
node22.Nodes.Add(node222);
TreeNode node223 = new TreeNode();
node223.Text = "223";
node22.Nodes.Add(node223);
TreeNode node2231 = new TreeNode();
node2231.Text = "cxcai";
node223.Nodes.Add(node2231);
TreeNode node33 = new TreeNode();
node33.Text = "ccc";
node0.Nodes.Add(node33);
&nbs