Esempio n. 1
0
        /// <summary>
        /// This method calls <code>dropActionChanged</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 ProcessDropActionChanged(DragSourceDragEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DropActionChanged(dsde);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Calls <code>dropActionChanged</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 DropActionChanged(DragSourceDragEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DropActionChanged(dsde);
            }
            DragSource.ProcessDropActionChanged(dsde);

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