Exemplo n.º 1
0
        private void btnThemSanPham_Click(object sender, EventArgs e)
        {
            frmSanPham SanPham = new frmSanPham();

            SanPham.ShowDialog();
            ctrlSanPham.HienthiAutoComboBox(cmbSanPham);
        }
Exemplo n.º 2
0
 private void mnuSanPham_Click(object sender, EventArgs e)
 {
     if (SanPham == null || SanPham.IsDisposed)
     {
         SanPham           = new frmSanPham();
         SanPham.MdiParent = this;
         SanPham.Show();
     }
     else
     {
         SanPham.Activate();
     }
 }