예제 #1
0
        public bool EditRecipe(Recipe recipe)
        {
            try
            {
                var recipeVm = new RecipeVM(_dbPath, $"Ændre {recipe.Name}", recipe);
                return(true);
            }
            catch (SqlException)
            {
                Console.WriteLine("Couldn't alter recipe...");
            }
            catch (TransactionException)
            {
                Console.WriteLine("Couldn't alter recipe...");
            }

            return(false);
        }
예제 #2
0
 public void OpenCreateRecipeWindow()
 {
     var recipeVm = new RecipeVM(_dbPath, "Opret opskrift");
 }