private void btnRegister_Click(object sender, EventArgs e) { fmStudent fm = new fmStudent(); if (fm.ShowDialog() == DialogResult.OK) { BindRegisterList(); } }
private void 编辑ToolStripMenuItem_Click(object sender, EventArgs e) { var sd = dataGridView1.CurrentRow.Cells[0].Value.ToString(); fmStudent fm = new fmStudent(sd.ToInt()); if (fm.ShowDialog() == DialogResult.OK) { BindRegisterList(); } }