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 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; }