Пример #1
0
        /// <summary>
        /// Adds editor drag
        /// </summary>
        /// <param name="control">Control to drag</param>
        public static void AddEditorDrag(Control control)
        {
            EditorReceiver r = new EditorReceiver(control);

            control.AllowDrop  = true;
            control.DragEnter += new DragEventHandler(r.dragEnter);
            control.DragDrop  += new DragEventHandler(r.dragDrop);
        }
Пример #2
0
 /// <summary>
 /// Adds drags to control
 /// </summary>
 /// <param name="control">The control</param>
 public static void AddDrag(Control control)
 {
     EditorReceiver.AddEditorDrag(control);
     PictureReceiver.AddImageDrag(control);
 }