public OrderViewModel() { this.quattroRepository = new QuattroRepository(); this.customerRepository = new CustomerRepository(); this.productRepository = new ProductRepository(); this._salesHeaderView = SalesFactory.createNewSalesHeader(); this.selectedProduct = ProductFactory.createProduct(); selectedCustomer = CustomerFactory.createNew(); }
public OfferViewModel(ISalesHeaderView salesHeaderView, IQuattroRepository quattroRepository) { if (salesHeaderView == null) throw new ArgumentNullException("salesHeaderView"); if (quattroRepository == null) throw new ArgumentNullException("quattroRepository"); this.salesHeaderView = salesHeaderView; this.quattroRepository = quattroRepository; }
public OfferViewModel(ISalesHeaderView salesHeaderView, IQuattroRepository quattroRepository) { if (salesHeaderView == null) { throw new ArgumentNullException("salesHeaderView"); } if (quattroRepository == null) { throw new ArgumentNullException("quattroRepository"); } this.salesHeaderView = salesHeaderView; this.quattroRepository = quattroRepository; }
public PurchaseHeaderViewModel() { this.quattroRepository = new QuattroRepository(); this.purchaseHeaderView = PurchaseFactory.createNewPurchaseHeader(); }
public OfferViewModel() { this.quattroRepository = quattroRepository; this.salesHeaderView = SalesFactory.createNewSalesHeader(); }
public DistributionViewModel() { this.quattroRepository = quattroRepository; salesHeaderView = SalesFactory.createNewSalesHeader(); }