Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        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();
 }
Exemplo n.º 6
0
 public OfferViewModel()
 {
     this.quattroRepository = quattroRepository;
     this.salesHeaderView   = SalesFactory.createNewSalesHeader();
 }
Exemplo n.º 7
0
 public OfferViewModel()
 {
     this.quattroRepository = quattroRepository;
     this.salesHeaderView = SalesFactory.createNewSalesHeader();
 }
 public DistributionViewModel()
 {
     this.quattroRepository = quattroRepository;
     salesHeaderView        = SalesFactory.createNewSalesHeader();
 }
 public DistributionViewModel()
 {
     this.quattroRepository = quattroRepository;
     salesHeaderView = SalesFactory.createNewSalesHeader();
 }