private GetDragDropKind ( DragDropEffects effect ) : DragDropKind | ||
effect | DragDropEffects | |
return | DragDropKind |
private DragDropKind GetDragDropKind(DragDropEffects effect)
{
if ((effect & DragDropEffects.Copy) == DragDropEffects.Copy)
return DragDropKind.Copy;
if ((effect & DragDropEffects.Move) == DragDropEffects.Move)
return DragDropKind.Move;
// other effects are not currently supported by this control, so just return Move
return DragDropKind.Move;
}