123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using ComPDFKit.NativeMethod;
- using Compdfkit_Tools.Helper;
- using System;
- using System.Collections.Generic;
- using System.Configuration;
- using System.Data;
- using System.Globalization;
- using System.Linq;
- using System.Reflection;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Xml;
- using static ComPDFKit.NativeMethod.CPDFSDKVerifier;
- namespace DocsEditControl
- {
- /// <summary>
- /// Interaction logic for App.xaml
- /// </summary>
- public partial class App : Application
- {
- protected override void OnStartup(StartupEventArgs e)
- {
- string str = this.GetType().Assembly.Location;
- base.OnStartup(e);
- LicenseVerify();
- Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
- Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
- }
- private static bool LicenseVerify()
- {
- if (!LoadNativeLibrary())
- return false;
- LicenseErrorCode verifyResult = CPDFSDKVerifier.LicenseVerify("license_key_windows.txt", true);
- return (verifyResult == LicenseErrorCode.E_LICENSE_SUCCESS);
- }
- }
- }
|