Пример #1
0
 public AllTableMakerProductsViewModel(TableMakerProductServiceClass tableMakerProductService, TableMakerProductTypeServiceClass tableMakerProductTypeServie, ProjectServiceClass projectService)
 {
     _tableMakerProductTypeServie = tableMakerProductTypeServie;
     _tableMakerProductService    = tableMakerProductService;
     _projectService = projectService;
     this.CreateAllTableMakerProducts(_tableMakerProductService.Items);
     _tableMakerProductService.Items.CollectionChanged += Items_CollectionChanged;
 }
 public AllTableMakerProductTypesViewModel(TableMakerProductTypeServiceClass programTypeService)
 {
     _programTypeService = programTypeService;
     this.CreateAllTableMakerProductTypes(_programTypeService.Items);
     _programTypeService.Items.CollectionChanged += Items_CollectionChanged;
 }