Пример #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
        }
Пример #2
0
 public bool DetermineLicenseCompliance(out bool systemShouldNagUser, out string nagMessage)
 {
     return(LicenseEnforcer.DetermineLicenseCompliance(out systemShouldNagUser, out nagMessage));
 }
Пример #3
0
 public void ApplyLicense(bool nagUser = true)
 {
     LicenseEnforcer.ApplyLicense(nagUser);
 }
Пример #4
0
 public IPlugin Install(Config c)
 {
     c.Plugins.add_plugin(this);
     EnforcerPlugin = c.Plugins.GetOrInstall(EnforcerPlugin);
     return(this);
 }
Пример #5
0
 public EmptyLicenseEnforcedPlugin(LicenseEnforcer <EmptyLicenseEnforcedPlugin> enforcer, params string[] codes)
 {
     EnforcerPlugin = enforcer;
     this.codes     = codes;
 }