Пример #1
0
 public HomeMenu(StoreAppContext context, IManagerRepoActions managerRepo, ICustomerRepoActions customerRepo, ILocationRepoActions locationRepo, IBaseballBatRepoActions baseballBatRepo, IOrderRepoActions orderRepo, IInventoryRepoActions inventoryRepo)
 {
     this.context         = context;
     this.managerRepo     = managerRepo;
     this.customerRepo    = customerRepo;
     this.locationRepo    = locationRepo;
     this.baseballBatRepo = baseballBatRepo;
     this.orderRepo       = orderRepo;
     this.inventoryRepo   = inventoryRepo;
 }
        public SignupMenu(StoreAppContext context, IManagerRepoActions managerRepoActions, ICustomerRepoActions customerRepoActions, ILocationRepoActions locationRepoActions, IBaseballBatRepoActions baseballBatRepoActions, IOrderRepoActions orderRepoActions, IInventoryRepoActions inventoryRepoActions)
        {
            this.context = context;

            this.customerRepoActions    = customerRepoActions;
            this.managerRepoActions     = managerRepoActions;
            this.locationRepoActions    = locationRepoActions;
            this.inventoryRepoActions   = inventoryRepoActions;
            this.baseballBatRepoActions = baseballBatRepoActions;
            this.orderRepoActions       = orderRepoActions;

            this.customerActions = new CustomerActions(context, customerRepoActions);
        }
Пример #3
0
        public CustomerMainMenu(StoreAppContext context, ICustomerRepoActions customerRepoActions, ILocationRepoActions locationRepoActions, IOrderRepoActions orderRepoActions, IInventoryRepoActions inventoryRepoActions, IBaseballBatRepoActions batRepoActions, Customer signedInCustomer, Location location)
        {
            this.context = context;

            this.customerActions  = new CustomerActions(context, customerRepoActions);
            this.locationActions  = new LocationActions(context, locationRepoActions);
            this.inventoryActions = new InventoryActions(context, inventoryRepoActions);
            this.orderActions     = new OrderActions(context, orderRepoActions);
            this.batActions       = new BaseballBatActions(context, batRepoActions);

            this.customerRepoActions  = customerRepoActions;
            this.locationRepoActions  = locationRepoActions;
            this.orderRepoActions     = orderRepoActions;
            this.inventoryRepoActions = inventoryRepoActions;
            this.batRepoActions       = batRepoActions;

            this.currLocation     = location;
            this.signedInCustomer = signedInCustomer;
        }
 public CustomerActions(StoreAppContext context, ICustomerRepoActions repo)
 {
     this.repoActions = repo;
     this.context     = context;
 }