/// <summary> /// Executes the add ingredient command /// </summary> private void AddItemExecute() { try { AddIngredient addIngredient = new AddIngredient(); addIngredient.ShowDialog(); IngredientList = ingrediantsData.GetAllIngredients(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void AddIngredientClick(object sender, RoutedEventArgs e) { AddIngredient popup = new AddIngredient(PM); popup.ShowDialog(); }