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