|
@@ -15,13 +15,8 @@ namespace viewer_ctrl_demo
|
|
|
|
|
|
string sdkLicensePath = "..\\..\\..\\SDKLicense.xml";
|
|
|
Assembly assembly = Assembly.GetExecutingAssembly();
|
|
|
- string stream = (string)Properties.Resources.ResourceManager.GetObject(sdkLicensePath);
|
|
|
XmlDocument xmlDocument = new XmlDocument();
|
|
|
- if (!File.Exists(sdkLicensePath))
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
- xmlDocument.LoadXml(stream);
|
|
|
+ xmlDocument.Load(sdkLicensePath);
|
|
|
var node = xmlDocument.SelectSingleNode("License");
|
|
|
if (node != null )
|
|
|
{
|