From 9be9ba4e159969fb5e32648c2c34e912ccc3ae6d Mon Sep 17 00:00:00 2001 From: duheng <2286773002@qq.com> Date: 星期五, 28 三月 2025 14:22:42 +0800 Subject: [PATCH] 优化细节问题 --- WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs b/WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs index 7e3d09b..b449283 100644 --- a/WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs @@ -1,5 +1,4 @@ 锘縰sing DevExpress.Utils.DragDrop; -using Yw; namespace HStation.WinFrmUI.Basic { @@ -14,11 +13,12 @@ this.PageTitle.HeaderSvgImage = this.svgImage32[0]; this.PageTitle.SvgImageSize = new Size(24, 24); this.sysFlagTreeListCtrl1.FocusedChangedEvent += ModuleTreeListCtrl1_FocusedChangedEvent; + behaviorManager1.Detach<DragDropBehavior>(gridView1); } private List<SysFlagViewModel> _allBindingList = new List<SysFlagViewModel>(); - private int _LastRowIndex; + private long _typeId; private Yw.BLL.SysFlag _bll = null; @@ -30,6 +30,7 @@ //鑱氱劍鍒囨崲 private async void ModuleTreeListCtrl1_FocusedChangedEvent(long typeId) { + _typeId = typeId; var alllist = await _bll.GetByTypeID(typeId); _allBindingList.Clear(); foreach (var item in alllist) @@ -226,5 +227,10 @@ } }); } + + private void btnRefresh_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) + { + ModuleTreeListCtrl1_FocusedChangedEvent(_typeId); + } } } \ No newline at end of file -- Gitblit v1.9.3