Ejemplo n.º 1
0
 /// <summary>
 /// This event will be raised whenever a drop occurs on the ListView.
 /// </summary>
 /// <param name="e">The DropEventArgs for the event</param>
 private void OnDrop(DropEventArgs e)
 {
     if (Drop != null)
     {
         Drop(this, e);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This event will be raised whenever a drop occurs on the ListView.
 /// </summary>
 /// <param name="e">The DropEventArgs for the event</param>
 private void OnDrop(DropEventArgs e)
 {
     if (Drop != null)
         Drop(this, e);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// When an item is being dropped on the browser while holding the right mouse button, the context
        /// menu should not be showed. This method will take care of that problem.
        /// </summary>
        void DropWrapper_Drop(object sender, DropEventArgs e)
        {
            if (Control.Equals(dragStartControl, e.DragStartControl) && (e.MouseButtons & NativeShellAPI.MK.RBUTTON) != 0)
            {
                if (Control.Equals(dragStartControl, folderView))
                    tvContextWrapper.SuspendContextMenu = true;
                else if (Control.Equals(dragStartControl, fileView))
                    lvContextWrapper.SuspendContextMenu = true;
            }

            dragStartControl = null;
        }