Jelajahi Sumber

Fixed syncfusion license key for services

Kenric Nugteren 1 tahun lalu
induk
melakukan
688660427a
2 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 1
      prs.server/App.xaml.cs
  2. 0 2
      prs.server/Forms/Configuration.xaml.cs

+ 5 - 1
prs.server/App.xaml.cs

@@ -1,4 +1,6 @@
-using System;
+using InABox.Core;
+using Syncfusion.Licensing;
+using System;
 using System.Diagnostics;
 using System.IO;
 using System.Linq;
@@ -60,6 +62,8 @@ namespace PRSServer
         protected override void OnStartup(StartupEventArgs e)
         {
             base.OnStartup(e);
+            SyncfusionLicenseProvider.RegisterLicense(CoreUtils.SyncfusionLicense(SyncfusionVersion.v23_2));
+
             if (Environment.UserInteractive)
             {
                 var args = Environment.GetCommandLineArgs();

+ 0 - 2
prs.server/Forms/Configuration.xaml.cs

@@ -49,8 +49,6 @@ namespace PRSServer
             {
                 _settings = new LocalConfiguration<AutoUpdateSettings>().Load();
 
-                SyncfusionLicenseProvider.RegisterLicense(CoreUtils.SyncfusionLicense(SyncfusionVersion.v23_2));
-
                 StoreUtils.RegisterClasses();
                 CoreUtils.RegisterClasses();
                 ComalUtils.RegisterClasses();