private void 除ToolStripMenuItem_Click(object sender, EventArgs e) { frm_Production_Del fvd1 = null; if (dataGridView1.RowCount > 0) { string str = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); fvd1 = new frm_Production_Del(str); } else { fvd1 = new frm_Production_Del(); } if (fvd1.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { frm_Production_Display_Load(null, null); } }
private void 除商品ToolStripMenuItem_Click(object sender, EventArgs e) { frm_Production_Del fpd1 = new frm_Production_Del(); fpd1.ShowDialog(); }