public void Drop(IResource targetResource, IDataObject data, DragDropEffects allowedEffect, int keyState) { IResourceList resources = data.GetData(typeof(IResourceList)) as IResourceList; if (resources != null) { _form.AddResourceList(resources); } }
public static void ShowResourceClipboard(IResourceList contents) { if (_theInstance == null) { _theInstance = new ResourceClipboardForm(); _theInstance.Owner = (Form)Core.MainWindow; _theInstance.RestoreSettings(); } if (contents != null) { // this ensures we have a correct live list with no deleted resources (#4329) _theInstance.ClipboardContents = Core.ResourceStore.EmptyResourceList; _theInstance.AddResourceList(contents); _theInstance._lvResources.SelectAll(); } _theInstance.Visible = true; }