//**************************************************************************************************** //修改 private void btnUpdate_Click(object sender, EventArgs e) { FrmCardEdit frm = new FrmCardEdit(Convert.ToInt32(grd.CurrentRow.Cells["id"].Value)); if (frm.ShowDialog() == DialogResult.OK) { showData(); } }
//**************************************************************************************************** //添加 private void btnInsert_Click(object sender, EventArgs e) { FrmCardEdit frm = new FrmCardEdit(0); if (frm.ShowDialog() == DialogResult.OK) { showData(); } }