Exemplo n.º 1
0
 public fmRecipeEditor()
 {
     InitializeComponent();
       _recipeView = new RecipeView();
       lbIngredients.DataSourceChanged += new EventHandler(lbIngredients_DataSourceChanged);
 }
Exemplo n.º 2
0
 public void AddRecipe(RecipeView recipeView)
 {
     DbRecipe dbRecipe = new DbRecipe(recipeView);
     _context.AddRecipe(dbRecipe, recipeView.Ingredients.Select(p => new DbIngredient(p)).ToArray());
 }