internal void HandleCollapsing(SharpTreeNode node) { var selectedChilds = node.VisibleDescendants().Where(n => n.IsSelected); if (selectedChilds.Any()) { var list = SelectedItems.Cast <SharpTreeNode>().Except(selectedChilds).ToList(); list.AddOnce(node); SetSelectedItems(list); } }
internal void HandleCollapsing(SharpTreeNode Node) { var selectedChilds = Node.VisibleDescendants().Where(n => n.IsSelected); if (selectedChilds.Any()) { var list = SelectedItems.Cast<SharpTreeNode>().Except(selectedChilds).ToList(); list.AddOnce(Node); SetSelectedItems(list); } }