/// <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);
 }
Beispiel #2
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;
            }

            dragStartControl = null;
        }