コード例 #1
0
 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);
 }
コード例 #2
0
 private void btnCustomer_Click(object sender, EventArgs e)
 {
     mcADDBanhang = new MCADDKhachhang();
     frmLayout.panelContents.Controls.Clear();
     frmLayout.panelContents.Controls.Add(mcADDBanhang);
 }