View previous topic :: View next topic |
Author |
Message |
Happs
Joined: 13 Jul 2011 Posts: 62 Location: Sydney, Australia
|
Posted: Thu Feb 12, 2015 3:13 am Post subject: Modify "License Status" in AuthenticatedLicenseIns |
|
|
Hi,
I have a derived class of AuthenticatedLicenseInstallForm, I need to modify the "License Status" text to show our customised text After Install button pressed and license authenticated, also when the form shown later.
For example: http://screencast.com/t/BV8g2ais
"License Installed - Expires: 16/03/2015 1:15 PM"
to
"License Installed - Upgrade protection expires: 16/03/2015"
I can use OnShown() to update text when the form displayed but need to update after the key authenticated.
Any suggestions
Thanks |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Feb 16, 2015 2:02 am Post subject: |
|
|
You can derive your own class from AuthenticatedLicenseProvider and override the GetExpiredStatusText method to return the text you want. The default implementation of this method is:
Code: | protected virtual string GetExpiredStatusText(AuthenticatedLicense license)
{
DateTime expiryDate = license.ExpiryDate.Value.ToLocalTime();
return string.Format(LicenseResources.StatusExpiredTxt, expiryDate);
}
|
Pass an instance of your derived class into the AuthenticatedLicenseInstallForm.ShowDialog method _________________ Infralution Support |
|
Back to top |
|
|
Happs
Joined: 13 Jul 2011 Posts: 62 Location: Sydney, Australia
|
Posted: Thu Feb 19, 2015 10:07 pm Post subject: |
|
|
GetExpiredStatusText() method solved my issue, thanks |
|
Back to top |
|
|
|