BatchGuy.App.CreateX264BatchFileForm.HandleDgvFilesDragDrop C# (CSharp) Method

HandleDgvFilesDragDrop() private method

private HandleDgvFilesDragDrop ( DragEventArgs e ) : void
e System.Windows.Forms.DragEventArgs
return void
        private void HandleDgvFilesDragDrop(DragEventArgs e)
        {
            foreach (string file in (Array)e.Data.GetData(DataFormats.FileDrop))
            {
                if (this.IsAviSynthFile(file) && this.NotADuplicate(file))
                {
                    _bindingListFiles.Add(new X264File() { AviSynthFileNameOnly = Path.GetFileName(file), AviSynthFilePath = file, EncodeName = string.Empty });
                }
            }
            if (_bindingListFiles.Count() > 0)
            {
                this.BindFilesGrid();
                _filesGridSortConfiguration.SortDirection = 0;
                this.SortFilesGrid(1);
                createMkvmergeBatchFileToolStripMenuItem.Enabled = true;
                createX264BatchFileToolStripMenuItem.Enabled = true;
            }
            lblNumberOfFiles.Text = string.Format("Number of Files: {0}", _bindingListFiles.Count());
        }
CreateX264BatchFileForm