private void toolAdd_Click(object sender, EventArgs e) { FrmProduct frm = new FrmProduct(""); if (frm.ShowDialog() == DialogResult.Yes) { Fill(); } }
private void toolUpdate_Click(object sender, EventArgs e) { if (jm_dgv.SelectedRows.Count < 1) { MessageBox.Show("请选择一行"); return; } string ID = jm_dgv.SelectedRows[0].Cells["ColID"].Value.ToString(); FrmProduct frm = new FrmProduct(ID); if (frm.ShowDialog() == DialogResult.Yes) { Fill(); } }