public bool CheckAccess() { var manager = new LicenseSettingsManager(); var codeResult = manager.LoadSettings(); if (string.IsNullOrEmpty(codeResult)) return false; return TryCheckAccess(codeResult); }
public static bool LicenseIsInstalled() { if (!_LicenseIsInstalled.HasValue) { var manager = new LicenseSettingsManager(); var settings = manager.LoadSettings(); var licenseService = EngineContext.Current.Resolve<ILicenseService>(); _LicenseIsInstalled = settings != null && (!String.IsNullOrEmpty(settings) && licenseService.CheckAccess()); } return _LicenseIsInstalled.Value; }