예제 #1
0
 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();
     }
 }
예제 #2
0
 private void ManageIngredients_FormClosed(object sender, FormClosedEventArgs e)
 {
     manageIngredients = null;
 }