private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (tabControl.SelectedIndex == 0)
     {
         DataGridViewUtility.PasteFromeExcel(dataGridView1);
     }
     else if (tabControl.SelectedIndex == 1)
     {
         DataGridViewUtility.PasteFromeExcel(dataGridView2);
     }
     else if (tabControl.SelectedIndex == 2)
     {
         DataGridViewUtility.PasteFromeExcel(dataGridView3);
     }
 }
예제 #2
0
 private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DataGridViewUtility.PasteFromeExcel(GetCurrentDataGridView());
 }