private void HandleItemDrag(object sender, ItemDragEventArgs e) { if (!_allowDrag) { return; } DataObject dataObj = new DataObject(); IResourceList selectedResources = GetSelectedResources(); dataObj.SetData(typeof(IResourceList), selectedResources); dataObj.SetData(typeof(ResourceListView2), this); string[] dragResTypes = selectedResources.GetAllTypes(); if (dragResTypes.Length == 1) { IResourceDragDropHandler handler = Core.PluginLoader.GetResourceDragDropHandler(selectedResources[0]); if (handler != null) { handler.AddResourceDragData(selectedResources, dataObj); } } DoDragDrop(dataObj, DragDropEffects.All | DragDropEffects.Move | DragDropEffects.Link); }
public void AddResourceDragData(IResourceList dragResources, IDataObject dataObject) { _baseHandler.AddResourceDragData(dragResources, dataObject); _linkhandler.AddResourceDragData(dragResources, dataObject); }
public void AddResourceDragData(IResourceList dragResources, IDataObject dataObject) { parentHandler.AddResourceDragData(dragResources, dataObject); }