public DomainModel() { _companyCustomerCatalog = new CompanyCustomerCatalog(); _housingAssociationCustomerCatalog = new HousingAssociationCustomerCatalog(); _privateCustomerCatalog = new PrivateCustomerCatalog(); _customers = new ObservableCollection <CustomerBase>(); _zipCatalog = new ZipCatalog(); _puttyCatalog = new PuttyCatalog(); _toolCatalog = new ToolCatalog(); _coverCatalog = new CoverCatalog(); _wallCoverCatalog = new WallCoverCatalog(); _paintCatalog = new PaintCatalog(); _products = new ObservableCollection <ProductBase>(); }
public PrivateCustomerItemViewModel() { _privateCustomer = new PrivateCustomer(); _privateCustomerCatalog = new PrivateCustomerCatalog(); _createPrivateCustomerCommand = new CreatePrivateCustomerCommand(_privateCustomer, _privateCustomerCatalog, this); }
public CreatePrivateCustomerCommand(PrivateCustomer privateCustomer, PrivateCustomerCatalog privateCustomerCatalog, PrivateCustomerItemViewModel ivm) { _privateCustomer = privateCustomer; _privateCustomerCatalog = privateCustomerCatalog; _ivm = ivm; }