Esempio n. 1
0
        public bool CheckAccess() {

            var manager = new LicenseSettingsManager();
            var codeResult = manager.LoadSettings();
            if (string.IsNullOrEmpty(codeResult))
                return false;
            return TryCheckAccess(codeResult);
        }
Esempio n. 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;
        }
Esempio n. 3
0
 public void Install(string licenseCode) {
     var manager = new LicenseSettingsManager();
     manager.SaveSettings(licenseCode);
 }