void OnTreeDragDrop(TreeListNode node, DragSelection selection) { if (UCTreeDragDrop != null) { UCTreeDragDrop(this, new UCTreeDragDropEventArgs() { Node = node, Selection = selection }); } }
private void treeList1_DragEnter(object sender, DragEventArgs e) { DragSelection dragSelection = e.Data.GetData(typeof(DragSelection)) as DragSelection; if (dragSelection == null) { return; } e.Effect = DragDropEffects.Move; }
private void treeList1_DragDrop(object sender, DragEventArgs e) { DragSelection dragSelection = e.Data.GetData(typeof(DragSelection)) as DragSelection; if (dragSelection == null) { return; } if (treeList1.DropTaget != null) { OnTreeDragDrop(treeList1.DropTaget, dragSelection); } }