Esempio n. 1
0
        /// <summary>
        /// This method calls <code>dragEnter</code> on the
        /// <code>DragSourceListener</code>s registered with this
        /// <code>DragSource</code>, and passes them the specified
        /// <code>DragSourceDragEvent</code>.
        /// </summary>
        /// <param name="dsde"> the <code>DragSourceDragEvent</code> </param>
        internal virtual void ProcessDragEnter(DragSourceDragEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DragEnter(dsde);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Calls <code>dragEnter</code> on the
        /// <code>DragSourceListener</code>s registered with this
        /// <code>DragSourceContext</code> and with the associated
        /// <code>DragSource</code>, and passes them the specified
        /// <code>DragSourceDragEvent</code>.
        /// </summary>
        /// <param name="dsde"> the <code>DragSourceDragEvent</code> </param>
        public virtual void DragEnter(DragSourceDragEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DragEnter(dsde);
            }
            DragSource.ProcessDragEnter(dsde);

            UpdateCurrentCursor(SourceActions, dsde.TargetActions, ENTER);
        }