예제 #1
0
 public void OnSelectionReleased()
 {
     HandleHovering();
     if (_hoveredElement != null && _hoveredElement.CanReceive(CurrentSelection) &&
         (CurrentSelection.GetTargetType == _hoveredElement.GetElementType ||
          _hoveredElement.GetElementType == ElementType.TrashBin))
     {
         _hoveredElement.Receive(CurrentSelection);
         CurrentSelection.Empty();
     }
 }