private void dataGridView1_DragDrop(object sender, DragEventArgs e) { string[] FileList = (string[])e.Data.GetData(DataFormats.FileDrop, false); if (FileList.Count() > 0) { AddFileForm form = new AddFileForm(FileList[0]); form.ShowDialog(this); RefreshData(); } }
private void fromClipboardToolStripMenuItem_Click(object sender, EventArgs e) { AddFileForm form = new AddFileForm(); form.ShowDialog(this); RefreshData(); }