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 uiShoppingList( Action launchAddShoppingListDelegate, Action <ShoppingList> launchShowShoppingListDelegate, Action <ShoppingList> addShoppingListToPantry, ShoppingListInventory shoppingListInventory) { _addShoppingListToPantry = addShoppingListToPantry; _shoppingListInventory = shoppingListInventory; _launchShowShoppingListDelegate = launchShowShoppingListDelegate; _launchAddShoppingListDelegate = launchAddShoppingListDelegate; InitializeComponent(); shoppingListBindingSource.DataSource = _shoppingListInventory.ShoppingLists; }