From 3a986da7b0e385cb5d8101d3bf1e8c5f4acc9553 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 18 二月 2025 15:03:43 +0800
Subject: [PATCH] 版面

---
 DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index d6c3dcf..773b32d 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -653,20 +653,7 @@
 
         private void BtnLayout_ItemClick(object sender, ItemClickEventArgs e)
         {
-            var _formNamespace = "";
-            Control parentControl = this;
-            while (parentControl.Parent != null)
-            {
-                if (parentControl.Parent is Form parentForm)
-                {
-                    var formType = parentForm.GetType();
-                    _formNamespace = formType.FullName;
-                    break;
-                }
-                parentControl = parentControl.Parent;
-            }
-            Gs.DevApp.UserControl.showLayOut DevFrm = new showLayOut(_formNamespace);
-            DevFrm.ShowDialog();
+            if (btnLayoutClick != null) btnLayoutClick(this, e);
         }
         private void _enabledBtn(List<string> lstBtn)
         {
@@ -793,7 +780,6 @@
                 //榛樿鍚敤鐨勬寜閽�
                 _enabledList.Add(btnLoad.Name);
                 _enabledList.Add(btnHelp.Name);
-                _enabledList.Add(btnLayout.Name);
                 _enabledBtn(_enabledList);
             }
             catch (Exception ex)
@@ -987,6 +973,8 @@
         public event EventHandler btnWgClick;
 
 
+        public event EventHandler btnLayoutClick;
+
         #endregion
 
         #region 鍏叡灞炴��

--
Gitblit v1.9.3