private TreeListViewItemCollection GetParentsInHierarch() { TreeListViewItemCollection temp = Parent != null?Parent.GetParentsInHierarch() : new TreeListViewItemCollection(); if (Parent != null) { temp.Add(Parent); } return(temp); }
internal void GetCheckedItems(ref TreeListViewItemCollection items) { if (Checked) { items.Add(this); } foreach (TreeListViewItem item in Items) { item.GetCheckedItems(ref items); } }