Esempio n. 1
0
        private TreeviewRootViewModel CreateTree()
        {
            TreeviewRootViewModel result = new TreeviewRootViewModel();

            if (_geometry != null)
            {
                result.Children.Add(new ComObjectViewModel(result, _geometry, typeof(IGeometry), "IGeometry"));
            }
            return(result);
        }
Esempio n. 2
0
        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);
        }