Esempio n. 1
0
 private void addDatabases()
 {
     if (!m_databasesLoaded)
     {
         string appDataPath = System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\ZigGIS";
         if (System.IO.Directory.Exists(appDataPath))
         {
             string[] f = System.IO.Directory.GetFiles(appDataPath, "*.zig", System.IO.SearchOption.TopDirectoryOnly);
             for (int ii = 0; ii < f.Length; ii++)
             {
                 GxPostGisDatabase pgdb = new GxPostGisDatabase(f[ii]);
                 m_children.Insert(-1, (IGxObject)pgdb);
             }
             m_databasesLoaded = true;
         }
     }
 }
 private void addDatabases()
 {
     if (!m_databasesLoaded)
     {
         string appDataPath = System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\ZigGIS";
         if (System.IO.Directory.Exists(appDataPath))
         {
             string[] f = System.IO.Directory.GetFiles(appDataPath, "*.zig", System.IO.SearchOption.TopDirectoryOnly);
             for (int ii = 0; ii < f.Length; ii++)
             {
                 GxPostGisDatabase pgdb = new GxPostGisDatabase(f[ii]);
                 m_children.Insert(-1, (IGxObject)pgdb);
             }
             m_databasesLoaded = true;
         }
     }
 }