예제 #1
0
 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();
     }
 }
예제 #2
0
 private void fromClipboardToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddFileForm form = new AddFileForm();
     form.ShowDialog(this);
     RefreshData();
 }