private void btnSell_Click(object sender, EventArgs e) { UcBill_Sell sell = new UcBill_Sell(); pnlContent.Controls.Clear(); sell.Dock = DockStyle.Fill; pnlContent.Controls.Add(sell); sell.Show(); }
private void btnBill_Click(object sender, EventArgs e) { UcBill_Sell ucBill_Sell = new UcBill_Sell(); panelShowSP.Controls.Clear(); ucBill_Sell.Dock = DockStyle.Fill; panelShowSP.Controls.Add(ucBill_Sell); ucBill_Sell.Show(); }