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; }
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 void AddChildNode(IGxObject igxObject_1, TreeNode treeNode_2) { IGxObject tag = treeNode_2.Tag as IGxObject; igxObject_1.Attach(tag, this.igxCatalog_0); TreeNode node = this.method_6(igxObject_1); treeNode_2.Nodes.Add(node); }