public string GetPath() { string path = this.Name; BusinessItem nextParent = this.Parent; while (nextParent != null) { path = nextParent.Name + @"\" + path; nextParent = nextParent.Parent; } return(path); }
public BusinessItem(BusinessItem parent) { this.Items = new ObservableCollection <BusinessItem>(); this.Parent = parent; }