Пример #1
0
        protected override void OnMouseLeave(EventArgs e)
        {
            base.OnMouseLeave(e);

            if (_setDragCursor != null && !_dragHandler.Dragging)
            {
                _setDragCursor.Dispose();
                _setDragCursor = null;
            }
        }
Пример #2
0
 private void DisposeCursor()
 {
     if (_setCursor != null)
     {
         _setCursor.Dispose();
         _setCursor = null;
     }
 }