public CanParentArgs(Type draggedControlType, Control childControl, DragOperationType dragOperationType) { ChildControlType = draggedControlType; DragOperationType = dragOperationType; ChildControl = childControl; }
public DragDataWrapper(object data, DragOperationType type, Point dragStartPosition) : this(data, type) { DragStartPosition = dragStartPosition; }
public DragDataWrapper(object data, DragOperationType type) : this(data) { Type = type; }
/// <summary> /// can parent control /// </summary> /// <param name="type"></param> /// <param name="childControl"></param> /// <param name="dragOperationType">drop or move</param> /// <returns></returns> public bool CanParent(Type type, Control childControl, DragOperationType dragOperationType) { return(CanParent(new CanParentArgs(type, childControl, dragOperationType))); }