Esempio n. 1
0
        public OrderMDVM() : base(new OrderVMFactory(), OrderCatalog.Instance)
        {
            _customerCatalog       = CustomerCatalog.Instance;
            _productCatalog        = ProductCatalog.Instance;
            _orderedProductCatalog = OrderedProductCatalog.Instance;

            _clear                     = new ClearDataPackagesCmd();
            _addProductCmd             = new AddProductToOrder(this);
            _deleteProductFromOrderCmd = new DeleteProductFromOrderCmd(this);
            _createCommand             = new OrderCreateCmd(_catalog, this);
            _customerSerarchCmd        = new CustomerSearchCmd(this);
        }
Esempio n. 2
0
 public FrameVM()
 {
     _clear = new ClearDataPackagesCmd();
 }