コード例 #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();
 }