privatevoidtreeView1_NodeMouseClick(objectsender,TreeNodeMouseClickEventArgse){varnode=e.Node;if(node==null)return;//根据父节点状态,全选或全消子节点node.StateImageIndex=node.StateImageIndex==1?0:1;UpdateSubNodeCheckStatus(node);//确定子节点的父节点是否被选中(所有子节点选中时,父节点才选中...
查看全文