void uiList_ItemDrag(object sender, ItemDragEventArgs e) { var item = (ListViewItem)e.Item; IoC.MainForm.SetToolStripStatusLabel1(item.ToolTipText); var bitmap = new Bitmap(uiList.SmallImageList.Images[item.ImageKey]); _dragCursor = new Cursor(bitmap.GetHicon()); var plugin = item.Tag as IPlugin; var dragging = new HandleDraggingOfAssets(plugin.CreateDragDropHandler(new EntityCreationProperties(plugin.GetType(), UiAction.Dragging))); uiList.DoDragDrop(dragging, dragging.DragDropEffects); }
void uiList_ItemDrag(object sender, ItemDragEventArgs e) { var item = (ListViewItem)e.Item; IoC.MainForm.SetToolStripStatusLabel1( item.ToolTipText ); var bitmap = new Bitmap(uiList.SmallImageList.Images[item.ImageKey]); _dragCursor = new Cursor(bitmap.GetHicon()); var plugin = item.Tag as IPlugin ; var dragging = new HandleDraggingOfAssets( plugin.CreateDragDropHandler(new EntityCreationProperties(plugin.GetType(), UiAction.Dragging)) ) ; uiList.DoDragDrop(dragging, dragging.DragDropEffects); }