瀏覽代碼

compdfkit demo(windows) - 密钥xml

liuaoran 1 年之前
父節點
當前提交
5df20495f3
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      compdfkit_demo_windows/compdfkit/viewer-ctrl-demo/App.xaml.cs

+ 1 - 6
compdfkit_demo_windows/compdfkit/viewer-ctrl-demo/App.xaml.cs

@@ -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 )
             {