예제 #1
0
 private void addWizards()
 {
     if (!m_wizardsLoaded)
     {
         GxAddPostGisConnection pgWizard = new GxAddPostGisConnection();
         m_children.Insert(0, (IGxObject)pgWizard);
         m_wizardsLoaded = true;
     }
 }
예제 #2
0
        private void LoadChildren()
        {
            if (m_childrenLoaded)
            {
                return;
            }

            //Our children are GxContainer objects that represent class folders
            //for all the different types of styles.  Loop over each of these
            //types, and create a clsGxStyleGalleryClass object for it, and attach it to the
            //tree correctly.
            int i        = 0;
            int tempFor1 = m_pGallery.ClassCount;

            for (i = 0; i < tempFor1; i++)
            {
                CustomRootObject_CS.clsGxStyleGalleryClass pGxClass = null;
                pGxClass = new CustomRootObject_CS.clsGxStyleGalleryClass();
                pGxClass.StyleGalleryClass = (IStyleGalleryClass)m_pGallery.get_Class(i);

                IGxObject pGxObject = null;
                pGxObject = pGxClass;
                pGxObject.Attach(this, m_pCatalog);
                m_pChildren.Insert(-1, pGxObject);
            }
            m_childrenLoaded = true;
        }
예제 #3
0
        private void LoadChildren()
        {
            if (m_childrenLoaded)
            {
                return;
            }

            //Our children are GxContainer objects that represent the actual style items
            //of a certain type.

            IEnumStyleGalleryItem pEnumItems = null;

            pEnumItems = m_pParent.StyleGallery.get_Items(m_pClass.Name, "ESRI.style", "");

            IStyleGalleryItem pItem = null;

            pItem = pEnumItems.Next();
            while (pItem != null)
            {
                clsGxStyleGalleryItem pGxItem = null;
                pGxItem = new clsGxStyleGalleryItem();
                pGxItem.StyleGalleryItem = pItem;

                IGxObject pGxObject = null;
                pGxObject = pGxItem;
                pGxObject.Attach(this, m_pCatalog);

                m_pChildren.Insert(-1, pGxObject);
                pItem = pEnumItems.Next();
            }
            m_childrenLoaded = true;
        }
 public IGxObject AddChild(IGxObject child)
 {
     m_children.Insert(-1, child);
     return(child);
 }