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 | 43 +++++++++++++++++++++++++------------------ 1 files changed, 25 insertions(+), 18 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs index 5f655d9..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> @@ -330,6 +327,13 @@ // parameter = chkParameter //}; //_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) @@ -1018,7 +1022,10 @@ /// </summary> public event EventHandler btnWgClick; - + /// <summary> + /// 鐢熸垚棣栨 + /// </summary> + public event EventHandler btnShouJianClick; //public event EventHandler btnLayoutClick; #endregion @@ -1230,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