public PreOrdersTabViewModel(IPreOrdersService preOrdersService)
        {
            _preOrdersService = preOrdersService;
            PreOrders         = new ObservableCollection <PreOrderEntityViewModel>();

            ReloadToysAsync()
            .Wait();
        }
 public ManagerService(IPreOrdersService preOrdersService,
                       ISalesService salesService,
                       ICustomersService customersService
                       )
 {
     PreOrdersService = preOrdersService;
     SalesService     = salesService;
     CustomersService = customersService;
 }
Example #3
0
 public ManagerPageViewModel(IToysService toysService,
                             ISalesService salesService,
                             ICustomersService customersService,
                             IPreOrdersService preOrdersService,
                             ISalesStatisticsPrinter printer
                             )
 {
     ToysContext      = new ToysTabViewModel(toysService);
     SalesContext     = new SalesTabViewModel(salesService, printer);
     CustomersContext = new CustomersTabViewModel(customersService);
     PreOrdersContext = new PreOrdersTabViewModel(preOrdersService);
 }
Example #4
0
 public AdminService(IToysCategoriesService toysCategoriesService,
                     IToysService toysService,
                     IPreOrdersService preOrdersService,
                     ICustomersService customersService,
                     ISalesService salesService
                     )
 {
     ToysCategoriesService = toysCategoriesService;
     ToysService           = toysService;
     PreOrdersService      = preOrdersService;
     CustomersService      = customersService;
     SalesService          = salesService;
 }
 public AdminPageViewModel(IToysService toysService,
                           IToysCategoriesService categoriesService,
                           ISalesService salesService,
                           ICustomersService customersService,
                           IPreOrdersService preOrdersService,
                           ISalesStatisticsPrinter salesStatisticsPrinter
                           )
 {
     ToysContext           = new ToysTabViewModel(toysService);
     ToysCategoriesContext = new ToysCategoriesTabViewModel(categoriesService);
     SalesContext          = new SalesTabViewModel(salesService, salesStatisticsPrinter);
     CustomersContext      = new CustomersTabViewModel(customersService);
     PreOrdersContext      = new PreOrdersTabViewModel(preOrdersService);
 }