Преглед изворни кода

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