| | |
| | | using DevExpress.Utils.DragDrop; |
| | | using Yw; |
| | | |
| | | namespace HStation.WinFrmUI.Basic |
| | | { |
| | |
| | | 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; |
| | | |
| | |
| | | //聚焦切换 |
| | | private async void ModuleTreeListCtrl1_FocusedChangedEvent(long typeId) |
| | | { |
| | | _typeId = typeId; |
| | | var alllist = await _bll.GetByTypeID(typeId); |
| | | _allBindingList.Clear(); |
| | | foreach (var item in alllist) |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | private void btnRefresh_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | ModuleTreeListCtrl1_FocusedChangedEvent(_typeId); |
| | | } |
| | | } |
| | | } |