Represents a type that handle the dragging of assets. This type is used stored in the drag-drop mechanism, so it's important NOT to subsclass it as it won't be recognised.
Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }