protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); if (_setDragCursor != null && !_dragHandler.Dragging) { _setDragCursor.Dispose(); _setDragCursor = null; } }
private void DisposeCursor() { if (_setCursor != null) { _setCursor.Dispose(); _setCursor = null; } }