I am working on a license plugin based on the git example. If I make the plugin display the error dialog on loading, this dialog has a “details” button that gives fields such as vendor, address etc. These are all blank. How can I populate them?
Thanks
They are populated with fields in the AssemblyInfo.cs
file (assuming you are using C#). Fill in the strings as needed.
[assembly: PlugInDescription(DescriptionType.Address, "")]
[assembly: PlugInDescription(DescriptionType.Country, "")]
[assembly: PlugInDescription(DescriptionType.Email, "")]
[assembly: PlugInDescription(DescriptionType.Phone, "")]
[assembly: PlugInDescription(DescriptionType.Fax, "")]
[assembly: PlugInDescription(DescriptionType.Organization, "")]
[assembly: PlugInDescription(DescriptionType.UpdateUrl, "")]
[assembly: PlugInDescription(DescriptionType.WebSite, "")]
Sadly, I have filled those in but the dialog is blank.
Sorry, then I assumed wrong in my earlier post.
How do you do this?
– Dale
I make sure I have no license. When the dialog with “buy a license” etc comes up I close it. Then I get the Plug-in Error dialog. This has a details button which shows the blank fields.
So I am making GetLicense() return false and the plug-in OnLoad() return LoadReturnCode.ErrorShowDialog
I see the same, empty details if I force a load failure while the details are available in the plug-in [assembly: PluginDescription(...)]
definitions. The details show after successful loading in the Tools > Plug-ins > “my plug-in” > click “details” dialog. It looks like maybe some wires got disconnected?.
A temporary workaround could be to return LoadReturnCode.ErrorNoDialog
and show your own dialog with the message and details you want users to see.