private void FindChildrens(TreeLeaf _Parrent) { foreach (ObjectType _Data in DataHub.lData) { if (_Data.ParrentName == _Parrent.oObjectType.Name) { _Parrent.Childrens.Add(new TreeLeaf()); _Parrent.Childrens.Last().oObjectType = _Data; FindChildrens(_Parrent.Childrens.Last()); } } }
public Tree() { oRoot = new TreeLeaf(); }