private void btnEdit_Click(object sender, EventArgs e) { //修改处调用的也是新增的生产计划 只不过是已经赋值的 FrmProductionSchedule fpsform = new FrmProductionSchedule(); fpsform.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { FrmProductionSchedule fpsform = new FrmProductionSchedule(); if (fpsform.ShowDialog(this) == DialogResult.OK) { dataBind(); } }