qin
2025-03-14 185565a8eb30c0546746aad52aac0926d395a76d
WinFrmUI/HStation.WinFrmUI.Basic.Core/04-SysPropManage/SysPropManageMainPanel.cs
@@ -1,4 +1,5 @@
using DevExpress.Utils.DragDrop;
using DevExpress.XtraDiagram.Bars;
namespace HStation.WinFrmUI.Basic
{
@@ -13,11 +14,14 @@
            this.PageTitle.HeaderSvgImage = this.svgImage32[0];
            this.PageTitle.SvgImageSize = new Size(24, 24);
            this.propGroupTreeListCtrl1.FocusedChangedEvent += ModuleTreeListCtrl1_FocusedChangedEvent;
            behaviorManager1.Detach<DragDropBehavior>(gridView1);
        }
        private List<SysPropViewModel> _allBindingList = new List<SysPropViewModel>();
        private Yw.BLL.SysProp _bll = null;
        private long _groupID;
        public override void InitialDataSource()
        {
@@ -28,6 +32,7 @@
        //聚焦切换
        private async void ModuleTreeListCtrl1_FocusedChangedEvent(long groupID)
        {
            _groupID = groupID;
            var alllist = await _bll.GetByGroupID(groupID);
            _allBindingList.Clear();
            foreach (var item in alllist)
@@ -222,5 +227,10 @@
                }
            });
        }
        private void btnRefresh_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ModuleTreeListCtrl1_FocusedChangedEvent(_groupID);
        }
    }
}