From 5f095c23dbea8dc321568cfe49a74583fbd393e9 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期日, 23 二月 2025 11:13:34 +0800
Subject: [PATCH] 布局
---
DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
index d3589d4..758f5ad 100644
--- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs
@@ -6,6 +6,7 @@
using System.Net;
using System.Windows.Forms;
using DevExpress.XtraBars;
+using DevExpress.XtraBars.Commands;
using DevExpress.XtraEditors;
using Gs.DevApp.DevFrm.Rpt;
using Gs.DevApp.DevFrm.Sys;
@@ -49,6 +50,7 @@
btnZhongTai.ItemClick += BtnbZhongTai_ItemClick;
btnWg.ItemClick += BtnWg_ItemClick;
btnHelp.ItemClick += BtnHelp_ItemClick;
+ btnLayout.ItemClick += BtnLayout_ItemClick;
var lst = new List<string>();
foreach (BarItem item in barManager1.Items)
if (item is BarLargeButtonItem largeButtonItem)
@@ -73,7 +75,7 @@
if (parentForm != null)
{
PictureBox specificControl = (PictureBox)parentForm.Controls.Find("picCheckBox", true).FirstOrDefault();
- if (specificControl== null)
+ if (specificControl == null)
return false;
if (specificControl.Tag == null)
return false;
@@ -482,7 +484,12 @@
lst.Add(btnLog.Name);
lst.Add(btnPiZhun.Name);
lst.Add(btnHelp.Name);
+ lst.Add(btnLayout.Name);
lst.Add(btnBoHui.Name);
+ lst.Add(btnTzbl.Name);
+ lst.Add(btnKg.Name);
+ lst.Add(btnWg.Name);
+ lst.Add(btnZhongTai.Name);
_enabledBtn(lst);
this.currentAction = "esc";
if (btnEscClick != null) btnEscClick(this, e);
@@ -519,7 +526,9 @@
lst.Add(btnWg.Name);
lst.Add(btnZhongTai.Name);
lst.Add(btnHelp.Name);
+ lst.Add(btnLayout.Name);
lst.Add(btnLoad.Name);
+ lst.Add(btnTzbl.Name);
_enabledBtn(lst);
}
}
@@ -542,10 +551,10 @@
lst.Add(btnSave.Name);
lst.Add(btnEsc.Name);
lst.Add(btnHelp.Name);
+ lst.Add(btnLayout.Name);
_enabledBtn(lst);
this.currentAction = "edit";
if (btnEdtClick != null) btnEdtClick(this, e);
-
}
private void BtnDel_ItemClick(object sender, ItemClickEventArgs e)
@@ -568,6 +577,7 @@
lst.Add(btnSave.Name);
lst.Add(btnEsc.Name);
lst.Add(btnHelp.Name);
+ lst.Add(btnLayout.Name);
_enabledBtn(lst);
this.currentAction = "add";
if (btnAddClick != null) btnAddClick(this, e);
@@ -640,10 +650,12 @@
return;
}
Gs.DevApp.ToolBox.MsgHelper.ShowInformation(_rtnJson.rtnMsg);
-
}
-
+ private void BtnLayout_ItemClick(object sender, ItemClickEventArgs e)
+ {
+ if (btnLayoutClick != null) btnLayoutClick(this, e);
+ }
private void _enabledBtn(List<string> lstBtn)
{
foreach (BarItem item in barManager1.Items)
@@ -962,6 +974,8 @@
public event EventHandler btnWgClick;
+ public event EventHandler btnLayoutClick;
+
#endregion
#region 鍏叡灞炴��
--
Gitblit v1.9.3