Пример #1
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);
 }
 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);
 }
 public ShopManagementViewModel()
 {
     storesTabViewModel    = new StoresTabViewModel();
     customersTabViewModel = new CustomersTabViewModel();
     personsTabViewModel   = new PersonsTabViewModel();
 }
Пример #4
0
 public CustomersTabView()
 {
     InitializeComponent();
     DataContext = new CustomersTabViewModel();
 }
Пример #5
0
 public CustomersTabView(CustomersTabViewModel model)
 {
     InitializeComponent();
     DataContext = model;
 }