public void RegisterDropTarget(IDropTarget dropTarget) { if (!DropTargets.Contains(dropTarget)) { DropTargets.Add(dropTarget); } }
public void RegisterDropTarget(IDropTarget dropTarget, params string[] allowedDropGroupNames) { if (!DropTargets.Contains(dropTarget)) { DropTargets.Add(dropTarget); } foreach (var item in allowedDropGroupNames) { dropTarget.AllowedDropGroupNames.Add(item); } }