Ejemplo n.º 1
0
 void OnTreeDragDrop(TreeListNode node, DragSelection selection)
 {
     if (UCTreeDragDrop != null)
     {
         UCTreeDragDrop(this, new UCTreeDragDropEventArgs()
         {
             Node = node, Selection = selection
         });
     }
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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);
            }
        }