private void 添加教师信息_Click(object sender, EventArgs e) { Form41 f = new Form41(); f.ShowDialog(); Table(); }
private void 修改教师信息_Click(object sender, EventArgs e) { string[] str = { dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString(), dataGridView1.SelectedCells[2].Value.ToString(), dataGridView1.SelectedCells[3].Value.ToString() }; Form41 f = new Form41(str); f.ShowDialog(); Table(); }