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)); }
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); } }