Exemple #1
0
        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
        }
Exemple #2
0
 public void ApplyLicense(bool nagUser = true)
 {
     LicenseEnforcer.ApplyLicense(nagUser);
 }