예제 #1
0
        private void dataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            var dataIndexNo     = this.dataGridView.Rows[e.RowIndex].Index;
            var questEditorForm = new FormDropEditor();

            questEditorForm.ItmFile = this._a3MonsterData[dataIndexNo].File;
            questEditorForm.ShowDialog();
        }
예제 #2
0
 private void dataGridView_DragDrop(object sender, DragEventArgs e)
 {
     // still check if the associated data from the file(s) can be used for this purpose
     if (e.Data.GetDataPresent(DataFormats.FileDrop))
     {
         // Fetch the file(s) names with full path here to be processed
         var fileList = (string[])e.Data.GetData(DataFormats.FileDrop);
         if (Path.GetExtension(fileList[0]) == ".itm")
         {
             var editorForm = new FormDropEditor();
             editorForm.ItmFile = fileList[0];
             editorForm.ShowDialog();
         }
     }
 }