/// <summary> /// Inventory > Locations button view products click /// </summary> public void ShowProducLocationsFromLocationsUc(Location location) { pnlViews.Controls.Clear(); lbViewTitle.Text = $"{Phrases.GlobalInventoryTitle} > {Phrases.GlobalLocations} > {location.Name} > {Phrases.GlobalProducts.ToLower()}"; UserControl uc = new InventoryProductLocationsUc(this, location) { Dock = DockStyle.Fill }; pnlViews.Controls.Add(uc); }
/// <summary> /// Inventory > Products button view locations click /// </summary> public void ShowProducLocationsFromProductsUc(Product product) { pnlViews.Controls.Clear(); string productName = $"{product.Reference} {product.Name}"; lbViewTitle.Text = $"{Phrases.GlobalInventoryTitle} > {Phrases.GlobalProducts} > {productName} > {Phrases.GlobalLocations.ToLower()}"; UserControl uc = new InventoryProductLocationsUc(this, product) { Dock = DockStyle.Fill }; pnlViews.Controls.Add(uc); }
public ProductLocationForm(InventoryProductLocationsUc inventoryProductLocationsUc) { InitializeComponent(); _inventoryProductLocationsUc = inventoryProductLocationsUc; SetTranslatedPhrases(); }
// Called from the Locations InventoryProductLocationsUc public ManualStockMovementForm(InventoryProductLocationsUc inventoryProductLocationsUc, Location location) : this() { _inventoryProductLocationsUc = inventoryProductLocationsUc; _location = location; }
// Called from the Products InventoryProductLocationsUc public ManualStockMovementForm(InventoryProductLocationsUc inventoryProductLocationsUc, Product product) : this() { _inventoryProductLocationsUc = inventoryProductLocationsUc; _product = product; }