private void buttonAddFood_Click(object sender, EventArgs e) { RecipeForm formRecipe = new RecipeForm(); //f3.ShowDialog(); // Shows Form2 if (formRecipe.ShowDialog() == DialogResult.OK) { //Add to listManager rcpMngr.Add(formRecipe.Recepie); //Get the object from listManager //listBoxMetaInfo.Items.Add(rcpMngr.ToStringArray()); foreach (var item in rcpMngr.ToStringArray()) { listBoxMetaInfo.Items.Add(item); } } }
private void buttonAddFood_Click(object sender, EventArgs e) { RecipeForm formRecipe = new RecipeForm(); if (formRecipe.ShowDialog() == DialogResult.OK) { //Add to listManager rcpMngr.Add(formRecipe.Recepie); //Update the meta info box UpdateResults(); } }