View previous topic :: View next topic |
Author |
Message |
juwi_uk
Joined: 10 Mar 2014 Posts: 47
|
Posted: Sat May 10, 2014 8:55 am Post subject: Authenticated License once Started |
|
|
Hi
This is probably simple for you guys but I'm having trouble getting my mind around how best to do this.
I have the Infralution code in my ApplicationEvents class and it fires as expected my app starts and I can license etc OK or continue as eval.
I need an action though in my main menu so I can apply the license from within the app and I call My.Application.InstallLicense() from a menu click action and that works fine as well. Trouble is though I then have to close and reopen my app to switch from Eval/Full mode.
I'm having trouble getting my mind around how to integrate this in the Infralution code; I want that if they "Uninstall License" my app can be set back into "Eval Mode" and if they "Install License" (ie they started in eval mode) then it switches into full mode.
Should I try and hook into the Infralution code or should I test somehow after the InstallLicence (and thus authenticatedLicenseInstallForm closes).
Pulling my hair out on this one so help appreciated!
Julian |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun May 11, 2014 11:35 pm Post subject: |
|
|
The Authenticated Windows Forms Application sample project shows how to do this. The MainForm has an UpdateLicense method which is called in the main form constructor (ie when the application is started) as well as after the install button click calls My.Application.InstallLicense. The UpdateLicense method is where you check if you have a valid license and restrict any features you don't want available in evaluation mode. _________________ Infralution Support |
|
Back to top |
|
|
|