private void nhapHangToolStripMenuItemQLNhapHang_Click(object sender, EventArgs e) { Form frm = KiemTraTonTai(typeof(FormQuanLyNhapHang)); if (frm != null) { frm.Activate(); } else { FormQuanLyNhapHang fQLNhapHang = new FormQuanLyNhapHang(); fQLNhapHang.MdiParent = this; fQLNhapHang.Show(); } }
private void btnTimPhieuNhap_Click(object sender, EventArgs e)//Nút Chuyển Qua Form Quản Lý Nhập Hàng { Form frm = ThongTin.KiemTraTonTai(typeof(FormQuanLyNhapHang), this.ParentForm); if (frm != null) { frm.Activate(); } else { FormQuanLyNhapHang fQLDonHang = new FormQuanLyNhapHang(); fQLDonHang.MdiParent = this.ParentForm; fQLDonHang.Show(); } }
private void QuanLyNhapHang_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form frm = KiemTraTonTai(typeof(FormQuanLyNhapHang)); if (frm != null) { frm.Activate(); } else { FormQuanLyNhapHang fQuanLyNhapHang = new FormQuanLyNhapHang(); fQuanLyNhapHang.MdiParent = this; fQuanLyNhapHang.Show(); } }