Esempio n. 1
0
 public virtual T[] GetItems()
 {
     if (_items.Count <= 0)
     {
         return(new T[0]);
     }
     return(_items.GetItems());
 }
Esempio n. 2
0
        public string GetFullPath()
        {
            LightCollection <string> paths = new LightCollection <string>();

            paths.Add(_id);
            TreeItem <T> parent = this.Parent;

            while (parent != null)
            {
                paths.Add(parent.Id);
                parent = parent.Parent;
            }
            paths.Reverse();
            string fullPath = string.Join("/", paths.GetItems());

            return(fullPath);
        }
Esempio n. 3
0
 public virtual void Sort()
 {
     _items.Sort(_keys.GetItems());
     _keys.Sort(_keys.GetItems());
 }