Пример #1
0
        /// <summary>
        /// This method calls <code>dragDropEnd</code> on the
        /// <code>DragSourceListener</code>s registered with this
        /// <code>DragSource</code>, and passes them the specified
        /// <code>DragSourceDropEvent</code>.
        /// </summary>
        /// <param name="dsde"> the <code>DragSourceEvent</code> </param>
        internal virtual void ProcessDragDropEnd(DragSourceDropEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DragDropEnd(dsde);
            }
        }
Пример #2
0
        /// <summary>
        /// Calls <code>dragDropEnd</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>DragSourceDropEvent</code>.
        /// </summary>
        /// <param name="dsde"> the <code>DragSourceDropEvent</code> </param>
        public virtual void DragDropEnd(DragSourceDropEvent dsde)
        {
            DragSourceListener dsl = Listener;

            if (dsl != null)
            {
                dsl.DragDropEnd(dsde);
            }
            DragSource.ProcessDragDropEnd(dsde);
        }