AmandaInterface.FileManagerTabControl._DragDrop C# (CSharp) Méthode

_DragDrop() private méthode

private _DragDrop ( object sender, DragEventArgs e ) : void
sender object
e System.Windows.Forms.DragEventArgs
Résultat void
        private void _DragDrop(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.FileDrop)) // if the dropped file is a text file
            {
                string[] filePaths = (string[])e.Data.GetData(DataFormats.FileDrop);

                foreach (string file in filePaths)
                {
                    OpenExistingFile(file);
                }
            }
        }