Example #1
0
 public TreeViewWrapper(IVortexObject obj)
 {
     Wrapper = obj;
     if (Wrapper.GetType() == typeof(IVortexObject))
     {
         HasChildren = true;
         Children    = Wrapper.GetKids();
     }
 }
Example #2
0
 public IEnumerable <TreeObject> AsTreeObject(IVortexObject vortexObject) => vortexObject
 .GetType()
 .GetProperties()
 .Select(prop => AsTreeItem(prop, vortexObject))
 .Where(x => !(x is null));