void RaiseDragDrop(PhotoDragDropEventArgs e) { if (dragDrop != null) { dragDrop(this, e); } }
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); }