private void valueToolStripMenuItem_Click(object sender, EventArgs e) { if (tabControl.SelectedIndex == 0) { DataGridViewUtility.FillSelectedValue(dataGridView1); } else if (tabControl.SelectedIndex == 1) { DataGridViewUtility.FillSelectedValue(dataGridView2); } else if (tabControl.SelectedIndex == 2) { DataGridViewUtility.FillSelectedValue(dataGridView3); } }
private void valueToolStripMenuItem_Click(object sender, EventArgs e) { DataGridViewUtility.FillSelectedValue(GetCurrentDataGridView()); }