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