/// <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); }
public ProductForm(InventoryProductsUc inventoryProductsUserControl) { InitializeComponent(); _inventoryProductsUserControl = inventoryProductsUserControl; SetTranslatedPhrases(); }