Beispiel #1
0
        private TreeListViewItemCollection GetParentsInHierarch()
        {
            TreeListViewItemCollection treeListViewItemCollection = (Parent != null) ? Parent.GetParentsInHierarch() : new TreeListViewItemCollection();

            if (Parent != null)
            {
                treeListViewItemCollection.Add(Parent);
            }
            return(treeListViewItemCollection);
        }
Beispiel #2
0
 internal void GetCheckedItems(ref TreeListViewItemCollection items)
 {
     if (Checked)
     {
         items.Add(this);
     }
     foreach (TreeListViewItem item in Items)
     {
         item.GetCheckedItems(ref items);
     }
 }