예제 #1
0
 internal static void Init()
 {
     m_initOk = true;
     try
     {
         _licenceseCheck = new CatalogLicenseProviderCheck();
     }
     catch
     {
     }
 }
예제 #2
0
파일: GxCatalog.cs 프로젝트: secondii/Yutai
 public void Open()
 {
     if (CatalogLicenseProviderCheck.Check())
     {
         IGxObject obj2;
         string[]  logicalDrives = Directory.GetLogicalDrives();
         int       index         = 0;
         while (true)
         {
             if (index >= logicalDrives.Length)
             {
                 break;
             }
             try
             {
                 if ((logicalDrives[index].ToUpper() != @"A:\") && (logicalDrives[index].ToUpper() != @"B:\"))
                 {
                     obj2 = new GxDiskConnection();
                     (obj2 as IGxFile).Path = logicalDrives[index];
                     obj2.Attach(this, this);
                 }
             }
             catch
             {
             }
             index++;
         }
         string path = Application.StartupPath + @"\CatalogConfig.xml";
         if (File.Exists(path))
         {
             this.method_0(path);
         }
         obj2 = new GxRemoteDatabaseFolder();
         obj2.Attach(this, this);
         obj2 = new GxDatabaseServerFolder();
         obj2.Attach(this, this);
         obj2 = new GxGISServersFolder();
         obj2.Attach(this, this);
     }
 }
예제 #3
0
 private static void old_acctor_mc()
 {
     _licenceseCheck = null;
     m_initOk        = false;
 }