private void BT_New_Click(object sender, EventArgs e) { Edit_Recipe frm = new Edit_Recipe(true); frm.ShowDialog(); Frm_Recipe_Load(this, null); if (frm.RecipeName != "") { CBE_RecipeName.EditValue = frm.RecipeName; } }
private void BT_RecipeEdit_Click(object sender, EventArgs e) { if (CBE_RecipeName.EditValue.ToString() == "") { MessageBox.Show("无产品"); return; } Edit_Recipe frm = new Edit_Recipe(CBE_RecipeName.EditValue.ToString()); frm.ShowDialog(); RecipeInfor(); }