private void addLayers()
        {
            //System.Windows.Forms.MessageBox.Show("adding layers " + m_childrenLoaded.ToString());
            try
            {
                if (!m_childrenLoaded)
                {
                    //System.Windows.Forms.MessageBox.Show("adding layers");
                    IEnumDataset edsn = _wkspc.get_Datasets(esriDatasetType.esriDTFeatureClass);
                    IDataset     dsn;
                    // Load PostGIS layer names
                    while ((dsn = edsn.Next()) != null)
                    {
                        //IFeatureWorkspace fwks = (IFeatureWorkspace)_wkspc;
                        ////System.Windows.Forms.MessageBox.Show(dsn.Name);
                        //IFeatureClass fc = fwks.OpenFeatureClass(dsn.Name);
                        ////bool tst = (fc == null);
                        ////System.Windows.Forms.MessageBox.Show(tst.ToString());
                        //IFeatureLayer layer = new PostGisFeatureLayer();
                        ////IFeatureLayer layer = new FeatureLayerClass();

                        //layer.FeatureClass = fc;
                        //layer.Name = fc.AliasName;
                        //GxPostGisLayer gxl = new GxPostGisLayer((ILayer)layer);
                        GxPostGisDataset gxd = new GxPostGisDataset(dsn);
                        m_children.Insert(-1, (IGxObject)gxd);
                    }
                }
            }
            catch (Exception exc)
            {
                System.Windows.Forms.MessageBox.Show(exc.ToString());
            }
        }
        private void addLayers()
        {
            //System.Windows.Forms.MessageBox.Show("adding layers " + m_childrenLoaded.ToString());
            try
            {
                if (!m_childrenLoaded)
                {
                    //System.Windows.Forms.MessageBox.Show("adding layers");
                    IEnumDataset edsn = _wkspc.get_Datasets(esriDatasetType.esriDTFeatureClass);
                    IDataset dsn;
                    // Load PostGIS layer names
                    while ((dsn = edsn.Next()) != null)
                    {

                        //IFeatureWorkspace fwks = (IFeatureWorkspace)_wkspc;
                        ////System.Windows.Forms.MessageBox.Show(dsn.Name);
                        //IFeatureClass fc = fwks.OpenFeatureClass(dsn.Name);
                        ////bool tst = (fc == null);
                        ////System.Windows.Forms.MessageBox.Show(tst.ToString());
                        //IFeatureLayer layer = new PostGisFeatureLayer();
                        ////IFeatureLayer layer = new FeatureLayerClass();

                        //layer.FeatureClass = fc;
                        //layer.Name = fc.AliasName;
                        //GxPostGisLayer gxl = new GxPostGisLayer((ILayer)layer);
                        GxPostGisDataset gxd = new GxPostGisDataset(dsn);
                        m_children.Insert(-1, (IGxObject)gxd);

                    }
                }
            }
            catch (Exception exc)
            {
                System.Windows.Forms.MessageBox.Show(exc.ToString());
            }
        }