Exemple #1
0
 /// <summary>
 /// This event will be raised whenever a drop occurs on the TreeView.
 /// </summary>
 /// <param name="e">The DropEventArgs for the event</param>
 private void OnDrop(DropEventArgs e)
 {
     if (Drop != null)
     {
         Drop(this, e);
     }
 }
        /// <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 & ShellAPI.MK.RBUTTON) != 0)
            {
                if (Control.Equals(dragStartControl, folderView))
                {
                    tvContextWrapper.SuspendContextMenu = true;
                }
            }

            dragStartControl = null;
        }
 /// <summary>
 /// This event will be raised whenever a drop occurs on the TreeView.
 /// </summary>
 /// <param name="e">The DropEventArgs for the event</param>
 private void OnDrop(DropEventArgs e)
 {
     if(Drop != null)
         Drop(this, e);
 }
Exemple #4
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 & ShellAPI.MK.RBUTTON) != 0)
            {
                if (Control.Equals(dragStartControl, folderView))
                    tvContextWrapper.SuspendContextMenu = true;
                else if (Control.Equals(dragStartControl, fileView))
                    lvContextWrapper.SuspendContextMenu = true;
            }

            dragStartControl = null;
        }