Exemplo n.º 1
0
        public override bool CanDropOnTarget(RdcTreeNode targetNode)
        {
            GroupBase groupBase = (targetNode as GroupBase) ?? (targetNode.Parent as GroupBase);

            switch (groupBase.DropBehavior())
            {
            case DragDropEffects.Copy:
                return(groupBase.CanDropServers());

            case DragDropEffects.Link:
                if (groupBase.CanDropServers())
                {
                    return(AllowEdit(popUI: false));
                }
                return(false);

            default:
                return(false);
            }
        }
Exemplo n.º 2
0
 public override bool CanDropOnTarget(RdcTreeNode targetNode)
 {
     if (FileGroup == null)
     {
         GroupBase groupBase = (targetNode as GroupBase) ?? (targetNode.Parent as GroupBase);
         if (groupBase.DropBehavior() != DragDropEffects.Link)
         {
             return(groupBase.CanDropServers());
         }
         return(false);
     }
     return(base.CanDropOnTarget(targetNode));
 }