View previous topic :: View next topic |
Author |
Message |
Javier
Joined: 09 Oct 2009 Posts: 215
|
Posted: Sat Sep 13, 2014 4:25 pm Post subject: |
|
|
It works. However, I think that the problem could happen also for existing Floating licenses. They might not be detected since the default setting is now False. I would suggest the following code instead:
Code: | _localLicense = _localLicenseProvider.GetLicense();
while (!LoadLicense() && !_localLicenseProvider.IsValid(_localLicense))
{
EvaluationMonitor evaluationMonitor = new RegistryEvaluationMonitor("MyEvaluationPassword");
EvaluationDialog evaluationDialog = new EvaluationDialog();
EvaluationDialogResult dialogResult = evaluationDialog.ShowDialog(evaluationMonitor);
if (dialogResult == EvaluationDialogResult.Exit) return; // exit the app
if (dialogResult == EvaluationDialogResult.Continue) break; // exit the loop
if (dialogResult == EvaluationDialogResult.InstallLicense)
{
InstallLicense();
}
} |
|
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun Sep 14, 2014 12:56 pm Post subject: |
|
|
Since floating licenses are not stored on the local system (they are always obtained dynamically from the server) this shouldn't be a problem. However it is only a sample project - so you can modify the logic if you wish. _________________ Infralution Support |
|
Back to top |
|
|
|