From ca4c6a573fa25869ea93bd3bcb0345a06f29d0ef Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 27 三月 2025 15:15:30 +0800
Subject: [PATCH] 受托

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

diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index 08e90a8..5479d9c 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -7,9 +7,6 @@
 using System.Net;
 using System.Text;
 using System.Windows.Forms;
-using DevExpress.LookAndFeel;
-using DevExpress.Skins;
-using DevExpress.UserSkins;
 using DevExpress.XtraBars;
 using DevExpress.XtraEditors;
 using DevExpress.XtraGrid;
@@ -663,6 +660,8 @@
         private void BtnLayout_ItemClick(object sender, ItemClickEventArgs ee)
         {
             Form parentForm = this.Parent as Form;
+            if (parentForm == null)
+                parentForm = this.Parent.Parent as Form;
             string _formNamespace = parentForm.GetType().FullName;
             if (parentForm != null)
             {

--
Gitblit v1.9.3