private TreeviewRootViewModel CreateTree() { TreeviewRootViewModel result = new TreeviewRootViewModel(); if (_geometry != null) { result.Children.Add(new ComObjectViewModel(result, _geometry, typeof(IGeometry), "IGeometry")); } return(result); }
private TreeviewRootViewModel CreateTree() { TreeviewRootViewModel result = new TreeviewRootViewModel(); if (Ioc.IsRegistered <IApplication>()) { IApplication esriApplication = ArcMap.Application; result.Children.Add(new ComObjectViewModel(result, esriApplication, typeof(IApplication), "ArcMap")); } return(result); }