private void btnNhapHang_Click(object sender, EventArgs e) { if (!CheckExistForm("frmNhapHang")) { formNhapHang.MdiParent = this; formNhapHang.Show(); } else { ActivateChildForm("frmNhapHang"); } }
public static void HienThiPhieuNhapHang() { if (m_FrmNhapHang == null || m_FrmNhapHang.IsDisposed) { m_FrmNhapHang = new frmNhapHang(); m_FrmNhapHang.MdiParent = frmMain.ActiveForm; m_FrmNhapHang.Show(); } else { m_FrmNhapHang.Activate(); } }
private void btnNhapHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form form = IsActive12(typeof(QuanLy_DienThoai.Views.frmNhapHang)); if (form == null) { frmNhapHang Child = new frmNhapHang(lbltendangnhap.Caption); Child.MdiParent = this; Child.Show(); } else { form.Activate(); } }