摘要: private void treeView1_AfterCheck(object sender, TreeViewEventArgs e){ if (e.Action != TreeViewAction.ByMouse) return; SetParentNode(e.Node); SetChildNode(e.Node);}private void SetParentNode(TreeNode node){ if (node.Level > 0) { node.Parent.Checked = true; SetParentNode(node.Parent); }}private vo 阅读全文
posted @ 2011-08-02 17:06 一浩瀚星空一 阅读(2879) 评论(0) 推荐(1) 编辑