Пример #1
0
 public static bool Initialize(string installPath)
 {
     while (initializing)
     {
         Thread.Sleep(1);
     }
     if (status == AtlasInitStatus.NOT_INITIALIZED)
     {
         if (InitializeInt(installPath))
         {
             status = AtlasInitStatus.SUCCESS;
             return(true);
         }
         else
         {
             status = AtlasInitStatus.FAILURE;
             Deinitialize();
             return(false);
         }
     }
     else
     {
         return(status == AtlasInitStatus.SUCCESS);
     }
 }
Пример #2
0
 public static bool Initialize(string installPath)
 {
     while (initializing)
         Thread.Sleep(1);
     if (status == AtlasInitStatus.NOT_INITIALIZED)
     {
         if (InitializeInt(installPath))
         {
             status = AtlasInitStatus.SUCCESS;
             return true;
         }
         else
         {
             status = AtlasInitStatus.FAILURE;
             Deinitialize();
             return false;
         }
     }
     else
     {
         return status == AtlasInitStatus.SUCCESS;
     }
 }