lixiaojun
2024-10-18 1fe41eb1c9f2b2914b4a66a145f1ad0a75b9c915
WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SysCatalogManageMainPanel.cs
@@ -1,4 +1,5 @@
using DevExpress.XtraLayout.Customization.Behaviours;
using DevExpress.Utils.DragDrop;
using DevExpress.XtraLayout.Customization.Behaviours;
namespace HStation.WinFrmUI.Basic
{
@@ -161,5 +162,33 @@
            };
            dlg.ShowDialog();
        }
        private void barCheckSorter_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (barCheckSorter.Checked)
            {
                behaviorManager1.Attach<DragDropBehavior>(treeList1, behavior =>
                {
                    behavior.BeginDragDrop += Behavior_BeginDragDrop;
                    behavior.EndDragDrop += Behavior_EndDragDrop;
                });
            }
            else
            {
                behaviorManager1.Detach<DragDropBehavior>(treeList1);
            }
        }
        private void Behavior_BeginDragDrop(object sender, BeginDragDropEventArgs e)
        {
        }
        private async void Behavior_EndDragDrop(object sender, EndDragDropEventArgs e)
        {
            foreach (var item in _allBindingList)
            {
            }
            //   await _bll.update()
        }
    }
}