Ejemplo n.º 1
0
 public Replenishment(int rowCount, ProductManagement productManagement)
 {
     InitializeComponent();
     this._productManagement = productManagement;
     _confirmButton.Enabled  = false;
     _replenishmentControl   = new ReplenishmentPresentationModel(_productManagement);
     _rowIndex = rowCount; // 取得按下的行數
     this.ShowDialogInformation();
 }
 public void Initialize()
 {
     _info  = new ProductInfo("desc", "path", 9999999);
     _model = new OrderModel();
     _model.AddCategory("category");
     _model.AddProduct(6, "name", _info);
     _model.UpdateProductStock(6, 0, 15);
     _presentationModel = new ReplenishmentPresentationModel(_model);
     _target            = new PrivateObject(_presentationModel);
 }
 public void Initialize()
 {
     _productManagement = new ProductManagement(_readFIle);
     _replenishmentPresentationModel = new ReplenishmentPresentationModel(_productManagement);
 }