Exemple #1
0
 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;
 }
Exemple #4
0
 /// <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)));
 }
 public DragDataWrapper(object data, DragOperationType type, Point dragStartPosition)
     : this(data, type)
 {
     DragStartPosition = dragStartPosition;
 }
 public DragDataWrapper(object data, DragOperationType type)
     : this(data) {
     Type = type;
 }