日期:2014-05-18 浏览次数:20938 次
List<TreeNode> nodes = new List<TreeNode>(); private void tree_AfterCheck(object sender, TreeViewEventArgs e) { if (e.Node.Checked) { nodes.Add(e.Node); } else { if(nodes.Contains(e.Node))nodes.Remove(e.Node); } }