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/Util/MaskHolder.cs | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/HMI.UI/Util/MaskHolder.cs b/HMI.UI/Util/MaskHolder.cs
new file mode 100644
index 0000000..0d57b18
--- /dev/null
+++ b/HMI.UI/Util/MaskHolder.cs
@@ -0,0 +1,39 @@
+锘縰sing Panuon.WPF.UI;
+using System.Collections.Generic;
+
+namespace HMI.UI.Util
+{
+ //public class MaskHolder
+ //{
+ // private static Dictionary<WindowX, List<object>> Container;
+ // private static Dictionary<object, WindowX> ReverseContainer;
+
+ // public static void AddMask(WindowX window, object source)
+ // {
+ // if (Container.ContainsKey(window))
+ // {
+ // Container[window].Add(source);
+ // }
+ // else
+ // {
+ // Container[window] = new List<object> { source };
+ // }
+ // ReverseContainer.Add(source, window);
+ // window.IsMaskVisible = true;
+ // }
+
+ // public static void RemoveMask(object source)
+ // {
+ // if (!ReverseContainer.ContainsKey(source))
+ // {
+ // return;
+ // }
+ // WindowX win = ReverseContainer[source];
+ // if (!Container.ContainsKey(win) || Container[win] == null || Container[win].Count <= 0)
+ // {
+ // win.IsMaskVisible = false;
+ // }
+ // ReverseContainer.Remove(source);
+ // }
+ //}
+}
--
Gitblit v1.9.1