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 作为历史根节点

---
 WPFProject/Controls/HolderForm.cs |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/WPFProject/Controls/HolderForm.cs b/WPFProject/Controls/HolderForm.cs
new file mode 100644
index 0000000..f0e9566
--- /dev/null
+++ b/WPFProject/Controls/HolderForm.cs
@@ -0,0 +1,54 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using System.Windows.Threading;
+
+namespace WPFProject.Controls
+{
+    public partial class HolderForm : Form
+    {
+        private MaskControl maskPanel = new MaskControl
+        {
+            Dock = DockStyle.Fill,
+            Visible = false
+        };
+        public HolderForm()
+        {
+            InitializeComponent();
+            this.Controls.Add(maskPanel);
+        }
+
+        public object Content { get; private set; }
+
+        public void UpdateChild(object content)
+        {
+            this.Content = content;
+            if (content is Form form)
+            {
+                form.TopLevel = false;
+                form.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+                form.Dock = System.Windows.Forms.DockStyle.Fill;
+                this.Controls.Clear();
+                this.Controls.Add(maskPanel);
+                this.Controls.Add(form);
+                form.Show();
+            }
+        }
+
+        public void ShowMask()
+        {
+            maskPanel.ShowLoad(this.Location, this.Size);
+        }
+
+        public void HideMask()
+        {
+            maskPanel.HideLoad();
+        }
+    }
+}

--
Gitblit v1.9.1