private void 出库ToolStripMenuItem_Click(object sender, EventArgs e) { frm_Stock_Alter fva1 = null; if (dataGridView1.RowCount > 0) { string str1 = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); fva1 = new frm_Stock_Alter(str1); } else { fva1 = new frm_Stock_Alter(); } if (fva1.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { frm_Stock_Display_Load(null, null); } }
private void 出库ToolStripMenuItem_Click(object sender, EventArgs e) { frm_Stock_Alter fsa1 = new frm_Stock_Alter(); fsa1.ShowDialog(); }