예제 #1
0
        public bool CheckAccess() {

            var manager = new LicenseSettingsManager();
            var codeResult = manager.LoadSettings();
            if (string.IsNullOrEmpty(codeResult))
                return false;
            return TryCheckAccess(codeResult);
        }
예제 #2
0
        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;
        }