Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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();
 }
Exemple #4
0
 // Called from the Locations InventoryProductLocationsUc
 public ManualStockMovementForm(InventoryProductLocationsUc inventoryProductLocationsUc, Location location) : this()
 {
     _inventoryProductLocationsUc = inventoryProductLocationsUc;
     _location = location;
 }
Exemple #5
0
 // Called from the Products InventoryProductLocationsUc
 public ManualStockMovementForm(InventoryProductLocationsUc inventoryProductLocationsUc, Product product) : this()
 {
     _inventoryProductLocationsUc = inventoryProductLocationsUc;
     _product = product;
 }