Call knownLicense.Validate() (which should make an API request to see if the license is valid.
This also sets Config.Active.ActiveLicense to this valid license if it is.
If it's invalid, open the RequestLicenseKeyWindow
RequestLicenseKeyWindow (or something with a better name)
This window will ask the user for a license key.
Call new License(theInputKey) and Validate()
If it's valid, save the key (theInputKey.Save()) and stop blocking the application (load mainwindow)
If it's invalid, ask for another key.
There should also be a 30-day trial button which disappears if the TRIAL license key is also invalid. To be replaced by a buy link.
Note that RequestLicenseKeyWindow is NOT LicenseInfoWindow
LicenseInfoWindow is only used to display info about the license while the application is already running (and only called through MainWindow)
Here's the general idea of what still needs to happen:
Blocking the application
RequestLicenseKeyWindow (or something with a better name)
This window will ask the user for a license key.
Call new License(theInputKey) and Validate() If it's valid, save the key (theInputKey.Save()) and stop blocking the application (load mainwindow) If it's invalid, ask for another key.
There should also be a 30-day trial button which disappears if the TRIAL license key is also invalid. To be replaced by a buy link.
Note that RequestLicenseKeyWindow is NOT LicenseInfoWindow LicenseInfoWindow is only used to display info about the license while the application is already running (and only called through MainWindow)