From 80ef1df9daa28dd5d98efa6ffcc7f03c9f8df0db Mon Sep 17 00:00:00 2001 From: QI Mingxuan Date: Thu, 4 Jun 2026 16:24:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=B3=A8=E9=87=8A=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E5=BC=80=E5=8F=91=E8=BF=87=E7=A8=8B=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E8=BD=AF=E4=BB=B6=E6=8E=88=E6=9D=83=E6=A3=80=E6=B5=8B=EF=BC=8C?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?LicenseMode=E4=BD=BF=E7=94=A8885?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XplorePlane/App.xaml.cs | 43 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/XplorePlane/App.xaml.cs b/XplorePlane/App.xaml.cs index b5e3e68..f18a76f 100644 --- a/XplorePlane/App.xaml.cs +++ b/XplorePlane/App.xaml.cs @@ -458,15 +458,15 @@ namespace XplorePlane // 临时测试模式专属:订阅倒计时事件并提示 | Temporary test mode only: subscribe countdown events and notify if (licenseService.LicenseMode == XP.Common.License.Enums.LicenseMode.TemporaryTest) { - licenseService.TestModeWarning5Min += OnTestModeWarning5Min; - licenseService.TestModeWarning1Min += OnTestModeWarning1Min; - licenseService.TestModeTimeout += OnTestModeTimeout; + //licenseService.TestModeWarning5Min += OnTestModeWarning5Min; + //licenseService.TestModeWarning1Min += OnTestModeWarning1Min; + //licenseService.TestModeTimeout += OnTestModeTimeout; - MessageBox.Show( - "当前为临时测试模式,软件将在15分钟后自动关闭。\nCurrently in temporary test mode, the software will automatically shut down after 15 minutes.", - "临时测试模式 | Temporary Test Mode", - MessageBoxButton.OK, - MessageBoxImage.Information); + //MessageBox.Show( + // "当前为临时测试模式,软件将在15分钟后自动关闭。\nCurrently in temporary test mode, the software will automatically shut down after 15 minutes.", + // "临时测试模式 | Temporary Test Mode", + // MessageBoxButton.OK, + // MessageBoxImage.Information); } Log.Information("授权检查通过 | Authorization check passed, Mode={Mode}", licenseService.LicenseMode); @@ -492,11 +492,11 @@ namespace XplorePlane Application.Current.Dispatcher.Invoke(() => { Log.Warning("临时测试模式剩余5分钟 | Temporary test mode: 5 minutes remaining"); - //MessageBox.Show( - // "临时测试模式将在5分钟后到期,请尽快保存您的工作。\nTemporary test mode will expire in 5 minutes, please save your work.", - // "测试模式提醒 | Test Mode Reminder", - // MessageBoxButton.OK, - // MessageBoxImage.Information); + MessageBox.Show( + "临时测试模式将在5分钟后到期,请尽快保存您的工作。\nTemporary test mode will expire in 5 minutes, please save your work.", + "测试模式提醒 | Test Mode Reminder", + MessageBoxButton.OK, + MessageBoxImage.Information); }); } @@ -508,11 +508,11 @@ namespace XplorePlane Application.Current.Dispatcher.Invoke(() => { Log.Warning("临时测试模式剩余1分钟 | Temporary test mode: 1 minute remaining"); - //MessageBox.Show( - // "临时测试模式将在1分钟后到期,软件即将关闭,请立即保存您的工作。\nTemporary test mode will expire in 1 minute, the software will shut down soon. Please save your work immediately.", - // "测试模式即将到期 | Test Mode Expiring", - // MessageBoxButton.OK, - // MessageBoxImage.Warning); + MessageBox.Show( + "临时测试模式将在1分钟后到期,软件即将关闭,请立即保存您的工作。\nTemporary test mode will expire in 1 minute, the software will shut down soon. Please save your work immediately.", + "测试模式即将到期 | Test Mode Expiring", + MessageBoxButton.OK, + MessageBoxImage.Warning); }); } @@ -523,10 +523,9 @@ namespace XplorePlane { Application.Current.Dispatcher.Invoke(() => { - Log.Warning("临时测试模式已超时,开发阶段不执行软件自动退出流程 | Temporary test mode timed out"); - //Log.Warning("临时测试模式已超时,执行正常关闭流程 | Temporary test mode timed out, performing graceful shutdown"); - // // 使用正常关闭流程,确保资源正确释放 | Use graceful shutdown to ensure proper resource release - // Application.Current.MainWindow?.Close(); + Log.Warning("临时测试模式已超时,执行正常关闭流程 | Temporary test mode timed out, performing graceful shutdown"); + // 使用正常关闭流程,确保资源正确释放 | Use graceful shutdown to ensure proper resource release + Application.Current.MainWindow?.Close(); }); }