private void btn_LoaiHang_Click_1(object sender, EventArgs e) { if (m_FrmLoaiHang == null || m_FrmLoaiHang.IsDisposed) { m_FrmLoaiHang = new frmLoaiHang(); m_FrmLoaiHang.MdiParent = this; m_FrmLoaiHang.Show(); } else { m_FrmLoaiHang.Activate(); } }
private void btnLoaiHang_ItemClick(object sender, ItemClickEventArgs e) { Form frm = CheckForm(typeof(frmLoaiHang)); if (frm != null) { frm.Activate(); } else { frmLoaiHang frmN = new frmLoaiHang(); frmN.MdiParent = this; frmN.Show(); } }