public void EndDrag(object dragObject, System.Windows.Forms.DragDropEffects effect)
 {
     if (mFieldListView != null)
     {
         mFieldListView.IsDragging = false;
         mFieldListView.Cursor     = Cursors.Default;
         mFieldListView            = null;
     }
 }
Example #2
0
        public void Drop(IResource targetResource, IDataObject data, System.Windows.Forms.DragDropEffects allowedEffect, int keyState)
        {
            IResourceList dragResources = data.GetData(typeof(IResourceList)) as IResourceList;

            if (dragResources != null)
            {
                ResourcesDropped(targetResource, dragResources);
            }
        }
Example #3
0
        public static DragDropAction ToXwt(this SWF.DragDropEffects value)
        {
            var action = DragDropAction.None;

            if ((value & SWF.DragDropEffects.Copy) > 0)
            {
                action |= DragDropAction.Copy;
            }
            if ((value & SWF.DragDropEffects.Move) > 0)
            {
                action |= DragDropAction.Move;
            }
            if ((value & SWF.DragDropEffects.Link) > 0)
            {
                action |= DragDropAction.Link;
            }
            return(action);
        }
Example #4
0
 private void treeView1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if ((e.Button & MouseButtons.Left) == MouseButtons.Left && bMouseDown)
     {
         bMouseDown = false;
         //start drag group for re-grouping
         System.Drawing.Point pt = new System.Drawing.Point(e.X, e.Y);
         TableNode            nd = (TableNode)treeView1.GetNodeAt(pt);
         if (nd != null)
         {
             treeView1.SelectedNode = nd;
             dragData         = new clsDragTableData();
             dragData.objNode = nd;
             System.Windows.Forms.DragDropEffects ret = treeView1.DoDragDrop(dragData, System.Windows.Forms.DragDropEffects.All);
             if (ret == System.Windows.Forms.DragDropEffects.Move)
             {
             }
         }
     }
 }
Example #5
0
        public static DragEffects ToEto(this swf.DragDropEffects effects)
        {
            var action = DragEffects.None;

            if (effects.HasFlag(swf.DragDropEffects.Copy))
            {
                action |= DragEffects.Copy;
            }

            if (effects.HasFlag(swf.DragDropEffects.Move))
            {
                action |= DragEffects.Move;
            }

            if (effects.HasFlag(swf.DragDropEffects.Link))
            {
                action |= DragEffects.Link;
            }

            return(action);
        }
Example #6
0
        public System.Windows.Forms.DragDropEffects DragOver(IResource targetResource, IDataObject data, System.Windows.Forms.DragDropEffects allowedEffect, int keyState)
        {
            IResourceList dragResources = data.GetData(typeof(IResourceList)) as IResourceList;

            if (dragResources != null && CanDropResources(targetResource, dragResources))
            {
                return(DragDropEffects.Link);
            }
            return(DragDropEffects.None);
        }
Example #7
0
 public override System.Windows.Forms.DragDropEffects DoDragDrop(object data, System.Windows.Forms.DragDropEffects allowedEffects)
 {
     throw new NotImplementedException();
 }
Example #8
0
 public int GiveFeedback(System.Windows.Forms.DragDropEffects dwEffect)
 {
     return(ShellAPI.DRAGDROP_S_USEDEFAULTCURSORS);
 }