From f14d1fc28a8012035ee251fba71a0d048e9efd0d Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 16 一月 2025 09:10:48 +0800 Subject: [PATCH] 工具条切换状态 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 19 +++++-------------- 1 files changed, 5 insertions(+), 14 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index 33668ba..e59d30d 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -1761,24 +1761,15 @@ { xtraTabControl1.SelectedPageChanged += (s, e) => { - int _handle = gridView1.FocusedRowHandle; - //濡備綍鍒囨崲鍒�1鐨勬椂鍊欙紝鍏堝垽鏂┖鐧借 - if (_handle < 0) + if (xtraTabControl1.SelectedTabPageIndex == 1) { - if (xtraTabControl1.SelectedTabPageIndex == 1) + int _handle = gridView1.FocusedRowHandle; + bool _bl = xtraTabControl1.TabPages[0].PageEnabled; + if (_bl == false) { return; }; + if (_handle < 0 ) { xtraTabControl1.SelectedTabPageIndex = -1; Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇烽�夋嫨浣犺鏄剧ず鐨勮锛�" + _handle.ToString() + "tag" + xtraTabControl1.SelectedTabPageIndex.ToString()); - return; - } - } - if (xtraTabControl1.SelectedTabPageIndex == 1) - { - _handle = gridView1.FocusedRowHandle; - if (_handle < 0) - { - xtraTabControl1.SelectedTabPageIndex = -1; - Gs.DevApp.ToolBox.MsgHelper.ShowInformation("璇烽�夋嫨浣犺鏄剧ず鐨勮锛�" + _handle.ToString()); return; } DataRow row = gridView1.GetDataRow(_handle); -- Gitblit v1.9.3