Ejemplo n.º 1
0
 /// <summary>
 /// Checks the version of the controls (without hotfix version).
 /// </summary>
 public bool CheckVersion()
 {
     if (VersionCheck == -1)
     {
         SiteImportSettings importSettings = (SiteImportSettings)this.Settings;
         if ((importSettings != null) && importSettings.TemporaryFilesCreated)
         {
             VersionCheck = ImportExportHelper.IsLowerVersion(importSettings.Version, null, CMSContext.SYSTEM_VERSION, null) ? 1 : 0;
         }
         else
         {
             return(false);
         }
     }
     return(VersionCheck > 0);
 }