private void OpenAndCreateCollectionDialog_DragDrop(object sender, DragEventArgs e) { var files = (string[])e.Data.GetData(DataFormats.FileDrop); if (files.Length == 1) { _openAndCreateControl.SelectCollectionAndClose(files[0]); } }