private void btnStock_Click(object sender, EventArgs e) { UC_Stock stock = new UC_Stock(); mainPanel.Controls.Clear(); mainPanel.Controls.Add(stock); }
private void btnBack_Click(object sender, EventArgs e) { UC_Stock stock = new UC_Stock(); this.Controls.Clear(); this.Controls.Add(stock); }
private void CallPanel(int number) { switch (number) { case 1: UC_Stock stock = new UC_Stock(); this.Controls.Clear(); this.Controls.Add(stock); break; case 2: UC_Item item = new UC_Item(blStock.GetAllByCategory(_category)); this.Controls.Clear(); this.Controls.Add(item); break; } }