public ShoppingListController( ShoppingListInventory shoppingListInventory, MyPantry pantry, RecipeInventory recipeInventory) { _shoppingInventory = shoppingListInventory; _pantry = pantry; _recipeInventory = recipeInventory; }
public uiAddShoppingList(Action <string, ICollection <Recipe> > getShoppingList, RecipeInventory recipeInventory, ShoppingListInventory shoppingListInventory) { _shoppingListInventory = shoppingListInventory; _recipeInventory = recipeInventory; InitializeComponent(); _getShoppingListDelegate = getShoppingList; }
public uiRecipe( Action launchAddRecipeForm, Action <Recipe> launchEditRecipeForm, Func <Recipe, bool> cookRecipe, RecipeInventory recipeInventory) { _launchAddRecipeForm = launchAddRecipeForm; _launchEditRecipeForm = launchEditRecipeForm; _recipeInventory = recipeInventory; _cookRecipe = cookRecipe; InitializeComponent(); RecipeBindingSource.DataSource = _recipeInventory.VisibleRecipes; RecipeDataGridView.DataSource = RecipeBindingSource; SetGrouper(); }
public static void SetDefault() { privateParams = PrivateParam.Default(); param = Param.Default(); abilitys = Abilitys.Default(); resistance = Resistance.Default(); regeneration = Regeneration.Default(); itemInventory = new ItemInventory(float.MaxValue, float.MaxValue); equipInventory = new EquipInventory(); skillInventory = new SkillInventory(); buffInventory = new BuffInventory(); professionInventory = new ProfessionInventory(); recipeInventory = new RecipeInventory(); hotBarInventory = new HotBarInventory(); }
public HomeController() { _query = new Query(); DataGenerator.DataGenerator.GenerateAndInsertData(_query, 20, 10, 50); _recipeInventory = new RecipeInventory(_query); _shoppingInventory = new ShoppingListInventory(_query); _pantry = new MyPantry(_query); _recipeController = new RecipeController(_recipeInventory, _pantry); _pantryController = new PantryController(_pantry); _shoppingListController = new ShoppingListController(_shoppingInventory, _pantry, _recipeInventory); _statsFormController = new StatsFormController(_query); _launchRecipeManager = _recipeController.LaunchRecipeForm; _launchPantryManager = _pantryController.LaunchPantryForm; _launchShoppingListManager = _shoppingListController.LaunchShoppingListForm; _launchStatsFormManager = _statsFormController.LaunchStatsForm; }
public void Rdiv() { RecipeInventory r = GameObject.Find("Recipe").GetComponent <RecipeInventory>(); r.closeButton(); }
// Use this for initialization void Start() { Rinv = GameObject.Find("Recipe").GetComponent <RecipeInventory> (); tooltip = Rinv.GetComponent <RecipeTooltip> (); }