예제 #1
0
        public string GetPath()
        {
            string       path       = this.Name;
            BusinessItem nextParent = this.Parent;

            while (nextParent != null)
            {
                path       = nextParent.Name + @"\" + path;
                nextParent = nextParent.Parent;
            }

            return(path);
        }
예제 #2
0
 public BusinessItem(BusinessItem parent)
 {
     this.Items  = new ObservableCollection <BusinessItem>();
     this.Parent = parent;
 }