public LicenseChangeViewModel(LicensingConnector.IContext context, LicenseManagementViewModel.LicenseChangeReason reason, string oldLicense, Action <string> openLicenseVerify, System.Action licenseClear) { this.context = context; this.LicenseCode = oldLicense; this.reason = reason; this.validateCallback = openLicenseVerify; this.clearLicenseCallback = licenseClear; }
public LicenseManagementViewModel(LicensingConnector.IContext context, bool changeKey) { this.context = context; if (inLicenseVerification) { log.Info("Currently waiting for license verification, ignored duplicate request."); return; } DisplayName = "Enter valid license key"; string currentLicense = context.LicenseCode; if (changeKey) { allowClose = true; OpenLicenseChange(LicenseChangeReason.explicitChange, currentLicense); // opens dialog to change license } else { LicenseVerify(currentLicense); // tries to verify the license, in the background unless an error occurs } }
public LicenseServerUnreachableViewModel(LicensingConnector.IContext context, System.Action useBasicFeaturesCallback, System.Action retryCallback) { this.context = context; this.useBasicFeaturesCallback = useBasicFeaturesCallback; this.retryCallback = retryCallback; }