Exemple #1
0
 private void adicionarIngredienteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (addIngredients == null)
     {
         addIngredients = new FrmAddIngredients(true);
         addIngredients.MdiParent = this;
         addIngredients.FormClosed += AddIngredients_FormClosed;
         addIngredients.Show();
     }
     else
     {
         addIngredients.Activate();
     }
 }
Exemple #2
0
 private void AddIngredients_FormClosed(object sender, FormClosedEventArgs e)
 {
     addIngredients = null;
 }