Inheritance: ESRI.ArcGIS.Catalog.IGxObject
コード例 #1
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;
        }
コード例 #2
0
        public void Refresh()
        {
            IGxObject pSelection = null;

            pSelection = m_pCatalog.SelectedObject;
            if (pSelection is clsGxStyleGalleryItem)
            {
                m_pItem = (clsGxStyleGalleryItem)pSelection;
            }
            else
            {
                m_pItem = null;
            }
        }
コード例 #3
0
 public void Refresh()
 {
     IGxObject pSelection = null;
     pSelection = m_pCatalog.SelectedObject;
     if (pSelection is clsGxStyleGalleryItem)
         m_pItem = (clsGxStyleGalleryItem) pSelection;
     else
         m_pItem = null;
 }
コード例 #4
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;
        }