/// <summary> /// Called when the underlying ListView raises the DragDrop event</summary> /// <param name="e">Event args from the ListView's DragDrop event</param> protected virtual void OnDragDrop(DragEventArgs e) { ApplicationUtil.Insert( m_listViewAdapter.ListView, null, e.Data, "Drag and Drop".Localize(), m_statusService); }
/// <summary> /// Called when the underlying tree control raises the DragDrop event</summary> /// <param name="e">Event args from the tree control's DragDrop event</param> protected virtual void OnDragDrop(DragEventArgs e) { ApplicationUtil.Insert( m_treeControlAdapter.TreeView, m_treeControlAdapter.LastHit, e.Data, "Drag and Drop", m_statusService); if (!TreeControl.ShowDragBetweenCue) { return; } TreeControl.ShowDragBetweenCue = false; TreeControl.Invalidate(); }
/// <summary> /// Called when the underlying tree control raises the DragDrop event</summary> /// <param name="e">Event args from the tree control's DragDrop event</param> protected virtual void OnDragDrop(DragEventArgs e) { if (TreeControl.DragBetween) { TreeControl.Node parent, before; Point clientPoint = TreeControl.PointToClient(new Point(e.X, e.Y)); if (TreeControl.GetInsertionNodes(clientPoint, out parent, out before)) { ApplicationUtil.InsertBetween( m_treeControlAdapter.TreeView, parent != null ? parent.Tag : null, before != null ? before.Tag : null, e.Data, "Drag and Drop", m_statusService); } } else { ApplicationUtil.Insert( m_treeControlAdapter.TreeView, m_treeControlAdapter.LastHit, e.Data, "Drag and Drop", m_statusService); } if (!TreeControl.ShowDragBetweenCue) { return; } TreeControl.Invalidate(); }
/// <summary> /// Method triggered when DragDrop event is fired on the TreeListView</summary> /// <param name="e">Drag-and-drop event arguments</param> protected virtual void OnDragDrop(DragEventArgs e) { ApplicationUtil.Insert(View, LastHit, e.Data, "Drag and drop", StatusService); }