From 00ab1b5282ada6ffdc78b3dd46f0ce08726a51e6 Mon Sep 17 00:00:00 2001 From: qin <a@163.com> Date: 星期四, 20 三月 2025 13:47:24 +0800 Subject: [PATCH] 优化IBox界面 --- WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs b/WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs index 7c86897..b449283 100644 --- a/WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Basic.Core/03-SysFlagManage/SysFlagManageMainPanel.cs @@ -13,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; @@ -29,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) @@ -225,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