From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
HMI.UI/RequirePasswordWindow.xaml.cs | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/HMI.UI/RequirePasswordWindow.xaml.cs b/HMI.UI/RequirePasswordWindow.xaml.cs
new file mode 100644
index 0000000..b3472d6
--- /dev/null
+++ b/HMI.UI/RequirePasswordWindow.xaml.cs
@@ -0,0 +1,49 @@
+锘縰sing HMI.Core.Entity;
+using HMI.UI.Util;
+using Panuon.WPF.UI;
+using System.ComponentModel;
+
+namespace HMI.Base
+{
+ /// <summary>
+ /// RequirePasswordWindow.xaml 鐨勪氦浜掗�昏緫
+ /// </summary>
+ public partial class RequirePasswordWindow : WindowX
+ {
+ public RequirePasswordWindow()
+ {
+ this.DataContext = this;
+ InitializeComponent();
+ }
+
+ private string username;
+ public string Username
+ {
+ get => username;
+ set
+ {
+ Set(ref username, value);
+ }
+ }
+
+ protected override void OnClosing(CancelEventArgs e)
+ {
+ //Press Continue Button
+ if (DialogResult == true)
+ {
+ if (!string.Equals(PwdPassword.Password, UserInfo.User.Password))
+ {
+ ToastHelper.Error(this, "瀵嗙爜閿欒");
+ e.Cancel = true;
+ }
+ }
+ base.OnClosing(e);
+ }
+
+ private void WindowX_Loaded(object sender, System.Windows.RoutedEventArgs e)
+ {
+ Username = UserInfo.User.Username;
+ PwdPassword.Password = string.Empty;
+ }
+ }
+}
--
Gitblit v1.9.1