if (e.Node.IsExpanded) e.Node.Collapse(); else if (e.Node.Nodes.Count > 0) e.Node.Expand();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)