private void gerirIngredientesToolStripMenuItem_Click(object sender, EventArgs e) { if (manageIngredients == null) { manageIngredients = new FrmManageIngredients(true); manageIngredients.MdiParent = this; manageIngredients.FormClosed += ManageIngredients_FormClosed; manageIngredients.Show(); } else { manageIngredients.Activate(); } }
private void ManageIngredients_FormClosed(object sender, FormClosedEventArgs e) { manageIngredients = null; }