Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1.  // Open XML file and get key if file exists
  2.             if(File.Exists("ApiKeys.xml"))
  3.             {
  4.                 XmlDocument doc = new XmlDocument();
  5.                 doc.Load("ApiKeys.xml");
  6.                 XmlNode node = doc.DocumentElement.FirstChild; // Only have one API key in the file anyways
  7.                 var key = node.InnerText;
  8.                 Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(key);
  9.             }
  10.             else
  11.                 // Use free community license
  12.                 Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR API KEY");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement