Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic MindFusion.Licensing.LicenseManager.AddLicense question (Read 5134 times)
SE
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Jun 5th, 2015
MindFusion.Licensing.LicenseManager.AddLicense question
Sep 23rd, 2015 at 1:49pm
Print Post  
We purchsed a license for .NET mindfusion package.
Now i need to know where/how to call this property to add the license key? MindFusion.Licensing.LicenseManager.AddLicense .

I am adding it here.

private void IntializeComponenet()
{

this.diagramView1.LicenseKey = "Key code"

}


Is this correct? if yes, how can i test to make sure it is not in trial version mode anymore?

also, if i want to use this one, where should i call this method? Please advise the best option.

MindFusion.Licensing.LicenseManager.AddLicense?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: MindFusion.Licensing.LicenseManager.AddLicense question
Reply #1 - Sep 23rd, 2015 at 2:03pm
Print Post  
You can either set the LicenseKey property or call AddLicense method, it doesn't matter. AddLicense is more convenient if you have more than one DiagramView in different windows, as you won't have to set the property for each one.

If you haven't set the key, the component starts displaying trial message when there are more than 20 nodes in the diagram, so you could create 21 nodes from a loop and verify it's not showing.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
SE
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Jun 5th, 2015
Re: MindFusion.Licensing.LicenseManager.AddLicense question
Reply #2 - Sep 23rd, 2015 at 2:09pm
Print Post  
Thank you.I will test.

Where should i call this property in the code if i want to use this one?

MindFusion.Licensing.LicenseManager.AddLicense("key code")

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: MindFusion.Licensing.LicenseManager.AddLicense question
Reply #3 - Sep 23rd, 2015 at 2:13pm
Print Post  
Any start-up code invoked before the diagram shows will do, for example application or form classes' constructors, form.Load handler, application's Main method.
  
Back to top
 
IP Logged
 
SE
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Jun 5th, 2015
Re: MindFusion.Licensing.LicenseManager.AddLicense question
Reply #4 - Sep 23rd, 2015 at 2:15pm
Print Post  
ok, Will check. One more question-
will it hurt if i have both license key property set and also the MindFusion.Licensing.LicenseManager.AddLicense in the code?

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: MindFusion.Licensing.LicenseManager.AddLicense question
Reply #5 - Sep 23rd, 2015 at 2:26pm
Print Post  
It won't hurt, it will just return without doing any heavy processing if you set same code for a second time.
  
Back to top
 
IP Logged
 
SE
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Jun 5th, 2015
Re: MindFusion.Licensing.LicenseManager.AddLicense question
Reply #6 - Sep 23rd, 2015 at 2:30pm
Print Post  
Thannk you! This information is very helpful.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint