GenerateDesignRecipeBox() { RecipeBox rb = new RecipeBox(); rb.Name = "Design Only"; rb.Description = "Design time data margely bargely doogely doo"; for (int i = 0; i < 4; i++) { RecipeGroup recipeGroup = new RecipeGroup(); recipeGroup.Name = "Group " + i; for (int k = 0; k < 8; k++) { Recipe r = new Recipe(); r.Name = "Recipe " + i + k; r.Description = "The Recipe description is going here"; Ingredient flour = new Ingredient("Flour", IngredientType.Dry); flour.AdjustPercent(65); r.AddIngredient(flour); Ingredient water = new Ingredient("Water", IngredientType.Wet); water.AdjustPercent(25); r.AddIngredient(water); Ingredient group = new Ingredient(); group.Name = "Starter"; group.AdjustPercent(10); Ingredient flour2 = new Ingredient("Flour", IngredientType.Dry); flour2.AdjustPercent(75); r.AddIngredient(group); group.AddIngredient(flour2); Ingredient water2 = new Ingredient("Water", IngredientType.Wet); water2.AdjustPercent(25); group.AddIngredient(water2); r.TotalWeight = 1000; Step step = new Step(); step.Description = "Here is some direction on how to do some shit when your doing those things you do with the stuff and all that crap...You now have killer direction and such"; r.Steps.Add(step); r.Steps.Add(new Step("Here is another step that you'll need to follow")); r.BalancePercentages(); recipeGroup.Recipes.Add(r); } rb.RecipeGroups.Add(recipeGroup); } return rb; }
private static RecipeBox GenerateDefaultRecipeBox() { Recipe r = new Recipe(); r.Name = "Sourdough"; Ingredient flour = new Ingredient("Flour", IngredientType.Dry); flour.AdjustPercent(65); r.AddIngredient(flour); Ingredient water = new Ingredient("Water", IngredientType.Wet); water.AdjustPercent(25); r.AddIngredient(water); Ingredient group = new Ingredient(); group.Name = "Starter"; group.AdjustPercent(10); Ingredient flour2 = new Ingredient("Flour", IngredientType.Dry); flour2.AdjustPercent(75); r.AddIngredient(group); group.AddIngredient(flour2); Ingredient water2 = new Ingredient("Water", IngredientType.Wet); water2.AdjustPercent(25); group.AddIngredient(water2); r.TotalWeight = 1000; Step step = new Step(); step.Description = "Here is some direction on how to do some shit when your doing those things you do with the stuff and all that crap...You now have killer direction and such"; r.Steps.Add(step); r.BalancePercentages(); Recipe r2 = new Recipe(); r2.Name = "Jimmy Gabooty"; Ingredient pasta = new Ingredient("pasta", IngredientType.Dry); pasta.AdjustPercent(65); r2.AddIngredient(pasta); Ingredient milk = new Ingredient("Milk", IngredientType.Wet); milk.AdjustPercent(35); r2.AddIngredient(milk); r2.TotalWeight = 1000; RecipeBox rb = new RecipeBox(); rb.Name = "Default"; RecipeGroup recipeGroup = new RecipeGroup(); recipeGroup.Name = "Group"; recipeGroup.Recipes.Add(r); recipeGroup.Recipes.Add(r2); rb.RecipeGroups.Add(recipeGroup); return rb; }