示例#1
0
 void RaiseDragDrop(PhotoDragDropEventArgs e)
 {
     if (dragDrop != null)
     {
         dragDrop(this, e);
     }
 }
示例#2
0
        internal void DoDragDrop(Control control)
        {
            Window.Hide();
            Mode = PhotoDragMode.NoDrag;
            PhotoDragDropEventArgs e = new PhotoDragDropEventArgs();

            e.Control = control;
            if (e.Control != null)
            {
                e.Location = e.Control.PointToClient(Control.MousePosition);
            }
            else
            {
                e.Location = Control.MousePosition;
            }
            RaiseDragDrop(e);
        }