private void btnNew_Click(object sender, EventArgs e) { 基础物品信息设置界面 frm = new 基础物品信息设置界面(null, true); frm.ShowDialog(); btnRefresh_Click(null, null); if (frm.GoodsID != null) { PositioningRecord((int)frm.GoodsID); } }
/// <summary> /// 更新 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnUpdate_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow == null) { return; } 基础物品信息设置界面 frm = new 基础物品信息设置界面(Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value), btnUpdate.Visible); frm.ShowDialog(); btnRefresh_Click(null, null); PositioningRecord((int)frm.GoodsID); }