Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Modify "License Status" in AuthenticatedLicenseIns

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
Happs



Joined: 13 Jul 2011
Posts: 62
Location: Sydney, Australia

PostPosted: Thu Feb 12, 2015 3:13 am    Post subject: Modify "License Status" in AuthenticatedLicenseIns Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Feb 16, 2015 2:02 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Happs



Joined: 13 Jul 2011
Posts: 62
Location: Sydney, Australia

PostPosted: Thu Feb 19, 2015 10:07 pm    Post subject: Reply with quote

GetExpiredStatusText() method solved my issue, thanks Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group