protected void ApplyLicenseCommand(ProductLicenseCommand command) { ProductLicenseCommand oldCommand = null; if (LicenseServices.LicenseInformation.HasLicenseOverrideCommand) { oldCommand = LicenseServices.LicenseInformation.LicenseOverrideCommand; } LicenseServices.RegisterLicenseOverrideCommand(command); LicenseEnforcer.ApplyLicense(command.NotifyUser && LicenseEnforcer.CountNagged == 0); // nag user if he hasn't already been nagged }
public void ApplyLicense(bool nagUser = true) { LicenseEnforcer.ApplyLicense(nagUser); }