private void FormMain_DragDrop(object sender, DragEventArgs e) { string[] FileList = (string[])e.Data.GetData(DataFormats.FileDrop, false); FormOpen formOpen = new FormOpen(this); formOpen.radioButtonOpen_Check(); if (formOpen.fileOpen(FileList[0])) { DialogResult dialogResut = formOpen.ShowDialog(); } }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { FormOpen formOpen = new FormOpen(this); DialogResult dialogResut = formOpen.ShowDialog(); }