From 72b1cd95bc6b8e4956e7f6b8ea1968d0db1a969b Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 26 四月 2025 13:12:21 +0800
Subject: [PATCH] 巡检

---
 DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs |   47 ++++++++++++++++++++++++++++-------------------
 1 files changed, 28 insertions(+), 19 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index 9c514a6..95227ab 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -1,4 +1,15 @@
-锘縰sing System;
+锘縰sing DevExpress.XtraBars;
+using DevExpress.XtraEditors;
+using DevExpress.XtraGrid;
+using DevExpress.XtraGrid.Views.Grid;
+using DevExpress.XtraLayout;
+using Gs.DevApp.DevFrm.Rpt;
+using Gs.DevApp.DevFrm.Sys;
+using Gs.DevApp.Entity;
+using Gs.DevApp.ToolBox;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
+using System;
 using System.Collections.Generic;
 using System.Configuration;
 using System.Data;
@@ -7,19 +18,6 @@
 using System.Net;
 using System.Text;
 using System.Windows.Forms;
-using DevExpress.XtraBars;
-using DevExpress.XtraEditors;
-using DevExpress.XtraEditors.TextEditController;
-using DevExpress.XtraGrid;
-using DevExpress.XtraGrid.Views.Grid;
-using DevExpress.XtraLayout;
-using DevExpress.XtraRichEdit.Export.Rtf;
-using Gs.DevApp.DevFrm.Rpt;
-using Gs.DevApp.DevFrm.Sys;
-using Gs.DevApp.Entity;
-using Gs.DevApp.ToolBox;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
 
 namespace Gs.DevApp.UserControl
 {
@@ -59,6 +57,7 @@
             btnHelp.ItemClick += BtnHelp_ItemClick;
             btnLayout.ItemClick += BtnLayout_ItemClick;
             btnFont.ItemClick += BtnFont_ItemClick;
+            btnShouJian.ItemClick += BtnShouJian_ItemClick;
             var lst = new List<string>();
             foreach (BarItem item in barManager1.Items)
                 if (item is BarLargeButtonItem largeButtonItem)
@@ -68,8 +67,6 @@
         }
 
      
-
-
         /// <summary>
         ///     鍒濆鍖栨寜閽姸鎬�
         /// </summary>
@@ -331,6 +328,13 @@
             //};
             //_ckService(1.ToString());
         }
+        private void BtnShouJian_ItemClick(object sender, ItemClickEventArgs e)
+        {
+            if (btnShouJianClick != null)
+                btnShouJianClick(this, e);
+            else
+                return;
+        }
 
         private async void BtnIn_ItemClick(object sender, ItemClickEventArgs e)
         {
@@ -518,7 +522,7 @@
                     var lst = new List<string>();
                     lst.Add(btnAdd.Name);
                     lst.Add(btnEdit.Name);
-                    lst.Add(btnEsc.Name);
+                    //lst.Add(btnEsc.Name);
                     lst.Add(btnChk.Name);
                     lst.Add(btnFchk.Name);
                     lst.Add(btnDel.Name);
@@ -542,6 +546,8 @@
                     lst.Add(btnTzbl.Name);
                     _enabledBtn(lst);
                 }
+
+
             }
         }
 
@@ -1016,7 +1022,10 @@
         /// </summary>
         public event EventHandler btnWgClick;
 
-
+        /// <summary>
+        /// 鐢熸垚棣栨
+        /// </summary>
+        public event EventHandler btnShouJianClick;
         //public event EventHandler btnLayoutClick;
 
         #endregion
@@ -1228,7 +1237,7 @@
                             {
                                 spt.RestoreLayoutFromStream(stream);
                             }
-                           // spt.Horizontal = false;
+                            // spt.Horizontal = false;
                             spt.Panel1.AutoScroll = false;
                             spt.Panel2.AutoScroll = false;
                             //spt.Panel1.MaximumSize = new System.Drawing.Size(spt.Panel1.Width, 100);

--
Gitblit v1.9.3