public NonCoffeePage() { InitializeComponent(); _settings = new Settings("Big Bucks Coffee - Non-Coffee"); WindowTitle = _settings.Title; _nonCoffeeRepo = new NonCoffeeRepo(); var menuItems = _nonCoffeeRepo.GetMenuItems(); GenerateControlsForMenuItems(menuItems); }
public PastriesPage() { InitializeComponent(); _settings = new Settings("Big Bucks Coffee - Pastries"); WindowTitle = _settings.Title; _pastriesRepo = new PastriesRepo(); var menuItems = _pastriesRepo.GetMenuItems(); GenerateControlsForMenuItems(menuItems); }
public MenuItemsController(IMenuItemRepo menuItemRepo, IMapper mapper) { _mapper = mapper; _menuItemRepo = menuItemRepo; }