Bloom.CollectionChoosing.OpenAndCreateCollectionDialog.OpenAndCreateCollectionDialog_DragDrop C# (CSharp) Method

OpenAndCreateCollectionDialog_DragDrop() private method

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