Ejemplo n.º 1
0
        // Method to delete multiple recipes from .bin file using recipe service
        public void deleteMultiples(string recipes)
        {
            Factory    factory   = new Factory();
            IRecipeSvc recipeSvc = (IRecipeSvc)factory.getService("IRecipeSvc");

            recipeSvc.deleteMultiple(recipes);
        }
Ejemplo n.º 2
0
        // Method to update a single recipe in the .bin file using recipe service
        public void updateRecipe(Recipe recipe)
        {
            Factory    factory   = new Factory();
            IRecipeSvc recipeSvc = (IRecipeSvc)factory.getService("IRecipeSvc");

            recipeSvc.update(recipe);
        }
Ejemplo n.º 3
0
        // Method to delete a single recipe from .bin file using recipe service
        public void deleteRecipe(string recipe)
        {
            Factory    factory   = new Factory();
            IRecipeSvc recipeSvc = (IRecipeSvc)factory.getService("IRecipeSvc");

            recipeSvc.delete(recipe);
        }
Ejemplo n.º 4
0
        // Method to add a single recipe to .bin file using recipe service
        public void addRecipe(Recipe recipe)
        {
            Factory    factory   = new Factory();
            IRecipeSvc recipeSvc = (IRecipeSvc)factory.getService("IRecipeSvc");

            recipeSvc.add(recipe);
        }
Ejemplo n.º 5
0
        // Method to store list of recipes to .bin file using recipe service
        public void storeRecipes(List <Recipe> list)
        {
            Factory    factory   = new Factory();
            IRecipeSvc recipeSvc = (IRecipeSvc)factory.getService("IRecipeSvc");

            recipeSvc.create(list);
        }
Ejemplo n.º 6
0
        // Method to retrieve list of recipes in .bin file using recipe service
        public List <Recipe> retrieveRecipes()
        {
            Factory       factory   = new Factory();
            IRecipeSvc    recipeSvc = (IRecipeSvc)factory.getService("IRecipeSvc");
            List <Recipe> list      = recipeSvc.retrieveAllRecipes();

            return(list);
        }