private void kháchHàngToolStripMenuItem_Click(object sender, EventArgs e) { panelPreference.Controls.Clear(); panelContents.Controls.Clear(); mcADDBanhang = mcADDBanhang ?? new MCADDKhachhang(); pmCustonmer = pmCustonmer ?? new PMCustomer(); panelPreference.Controls.Add(pmCustonmer); panelContents.Controls.Add(mcADDBanhang); }
private void btnCustomer_Click(object sender, EventArgs e) { mcADDBanhang = new MCADDKhachhang(); frmLayout.panelContents.Controls.Clear(); frmLayout.panelContents.Controls.Add(mcADDBanhang); }