Пример #1
0
        /// <summary>
        /// Inventory > Products button click
        /// </summary>
        public void btnInventoryProducts_Click(object sender, EventArgs e)
        {
            // Show the InventoryProducts view
            pnlViews.Controls.Clear();
            lbViewTitle.Text = $"{Phrases.GlobalInventoryTitle} > {Phrases.GlobalProducts}";
            UserControl ucInventoryProducts = new InventoryProductsUc(this)
            {
                Dock = DockStyle.Fill
            }; // Passing the MainForm to this UC

            pnlViews.Controls.Add(ucInventoryProducts);
        }
Пример #2
0
 public ProductForm(InventoryProductsUc inventoryProductsUserControl)
 {
     InitializeComponent();
     _inventoryProductsUserControl = inventoryProductsUserControl;
     SetTranslatedPhrases();
 }