From 0561440e6df330aecd5b0304403f25d6f35dcb00 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期一, 25 八月 2025 16:08:14 +0800 Subject: [PATCH] 用户控件组织过滤 --- DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 34 +--------------------------------- 1 files changed, 1 insertions(+), 33 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs index 26e02be..da1b4e2 100644 --- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs +++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs @@ -62,7 +62,6 @@ btnGongZi.ItemClick += BtnGongZi_ItemClick; btnLianBan.ItemClick += BtnLianBan_ItemClick; btnGx.ItemClick += BtnGx_ItemClick; - btnWeight.ItemClick += BtnWeight_ItemClick; btnBaoGao.ItemClick += BtnBaoGao_ItemClick; var lst = new List<string>(); foreach (BarItem item in barManager1.Items) @@ -74,34 +73,7 @@ - /// <summary> - /// 鍚姩绉伴噸 - /// </summary> - /// <param name="sender"></param> - /// <param name="e"></param> - /// <exception cref="NotImplementedException"></exception> - private void BtnWeight_ItemClick(object sender, ItemClickEventArgs e) - { - bool isOpen = false; - foreach (Form form in Application.OpenForms) - { - if (form is WeightIqc) - { - isOpen = true; - //form.Activate(); // 婵�娲诲凡瀛樺湪鐨勭獥浣� - //form.MaximizeBox = true; - //form.TopMost = true; - MsgHelper.ShowInformation("宸茬粡鎵撳紑浜嗭紝璇峰嬁閲嶅鎵撳紑锛�"); - break; - } - } - if (!isOpen) - { - var form = new WeightIqc(); - form.Show(); - } - } - + /// <summary> /// 鍒濆鍖栨寜閽姸鎬� /// </summary> @@ -466,7 +438,6 @@ lst.Add(btnLianBan.Name); // lst.Add(btnEsc.Name); lst.Add(btnGx.Name); - lst.Add(btnWeight.Name); _enabledBtn(lst); this.currentAction = "esc"; if (btnEscClick != null) btnEscClick(this, e); @@ -519,7 +490,6 @@ lst.Add(btnLianBan.Name); // lst.Add(btnEsc.Name); lst.Add(btnGx.Name); - lst.Add(btnWeight.Name); _enabledBtn(lst); } } @@ -545,7 +515,6 @@ lst.Add(btnLayout.Name); lst.Add(btnFont.Name); lst.Add(btnLog.Name); - lst.Add(btnWeight.Name); _enabledBtn(lst); this.currentAction = "edit"; if (btnEdtClick != null) btnEdtClick(this, e); @@ -573,7 +542,6 @@ lst.Add(btnHelp.Name); lst.Add(btnLayout.Name); lst.Add(btnFont.Name); - lst.Add(btnWeight.Name); _enabledBtn(lst); this.currentAction = "add"; if (btnAddClick != null) btnAddClick(this, e); -- Gitblit v1.9.3