From d1b72117058f1131046b6aa3add8e3ccfae033d8 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 10:36:07 +0800
Subject: [PATCH] docs: CAN 模拟器独立 TCP 服务进程设计规格(统一 CanDeviceDriver + 双工推送协议)
---
HMI.ParameterManage/ParameterSetting.xaml.cs | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/HMI.ParameterManage/ParameterSetting.xaml.cs b/HMI.ParameterManage/ParameterSetting.xaml.cs
index 4039bf7..643bd8b 100644
--- a/HMI.ParameterManage/ParameterSetting.xaml.cs
+++ b/HMI.ParameterManage/ParameterSetting.xaml.cs
@@ -1,6 +1,7 @@
锘縰sing HMI.Base;
using HMI.Core.Entity;
using HMI.Core.Manager;
+using HMI.Core.Setting;
using HMI.Core.Util;
using HMI.UI.Util;
using HMI.Util;
@@ -9,7 +10,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
-using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
@@ -248,5 +248,21 @@
Loaded -= UserControl_Loaded;
}
+ public override bool CanActive()
+ {
+ if (ParamSetting.IsOptRequirePassword)
+ {
+ var win = new RequirePasswordWindow
+ {
+ Owner = Window.GetWindow(this),
+ WindowStartupLocation = WindowStartupLocation.CenterScreen
+ };
+ return win.ShowDialog() == true;
+ }
+ else
+ {
+ return true;
+ }
+ }
}
}
--
Gitblit v1.9.1