Esempio n. 1
0
        /// <summary>
        /// Handles the parent receiving a DragDrop event
        /// </summary>
        /// <param name="sender">The parent receiving the event</param>
        /// <param name="e">Contains the data being dragged</param>
        private static void _ctrlParent_DragDrop(object sender, DragEventArgs e)
        {
            // Get the control being dropped
            Control ctrl = DragDropHandler.GetControl(e.Data, true, true);

            // Set the control being dropped to be positioned to where we
            // did the drop
            Point NewLocation = ((Control)sender).PointToClient(new Point(e.X, e.Y));

            eventManager.handleDrag(ctrl, e, sender, NewLocation);
        }