private void btnAddProc_Click(object sender, EventArgs e) { AddStudentByProc addStuByProcFrm = new AddStudentByProc(); addStuByProcFrm.ShowDialog(); LoadDataGridView(); }
private void 修改存储过程ToolStripMenuItem_Click(object sender, EventArgs e) { string stuId = this.dgvStudent.SelectedCells[0].OwningRow.Cells["StuId"].Value.ToString(); AddStudentByProc addstuByProcFrm = new AddStudentByProc(); addstuByProcFrm.StuId = stuId; addstuByProcFrm.ShowDialog(); LoadDataGridView(); }