Exemplo n.º 1
0
 public InventorySystem(ReadFile initial, ProductManagement productManagement)
 {
     InitializeComponent();
     _productManagement = productManagement;
     _inventorySystemPresentationModel = new InventorySystemPresentationModel(_productManagement);
     _productManagement._writeNewData += UpdateProductData;
     this.LoadAndShowDataGridView();
     _itemPictureBox.Image   = _inventorySystemPresentationModel.GetImageFilePath(0);
     _itemDetailTextBox.Text = _inventorySystemPresentationModel.GetItemDetail(0);
 }
Exemplo n.º 2
0
 public void Initialize()
 {
     _productManagement = new ProductManagement(_initial);
     _inventorySystemPresentationModel = new InventorySystemPresentationModel(_productManagement);
 }