Пример #1
0
        public NonCoffeePage()
        {
            InitializeComponent();
            _settings   = new Settings("Big Bucks Coffee - Non-Coffee");
            WindowTitle = _settings.Title;

            _nonCoffeeRepo = new NonCoffeeRepo();
            var menuItems = _nonCoffeeRepo.GetMenuItems();

            GenerateControlsForMenuItems(menuItems);
        }
Пример #2
0
        public PastriesPage()
        {
            InitializeComponent();
            _settings   = new Settings("Big Bucks Coffee - Pastries");
            WindowTitle = _settings.Title;

            _pastriesRepo = new PastriesRepo();
            var menuItems = _pastriesRepo.GetMenuItems();

            GenerateControlsForMenuItems(menuItems);
        }
Пример #3
0
 public MenuItemsController(IMenuItemRepo menuItemRepo, IMapper mapper)
 {
     _mapper       = mapper;
     _menuItemRepo = menuItemRepo;
 }