Exemple #1
0
        // Used to reveal an item
        protected virtual IList <int> GetAncestors(int id)
        {
            // Default behavior assumes complete tree
            HashSet <int> parentsAbove = new HashSet <int>();

            TreeViewUtility.GetParentsAboveItem(FindItem(id), parentsAbove);
            return(parentsAbove.ToArray());
        }
 protected virtual IList <int> GetAncestors(int id)
 {
     return(TreeViewUtility.GetParentsAboveItem(this.FindItem(id)).ToList <int>());
 }
 // Used to reveal an item
 protected virtual IList <int> GetAncestors(int id)
 {
     // Default behavior assumes complete tree
     return(TreeViewUtility.GetParentsAboveItem(FindItem(id)).ToList());
 }