private void donHangToolStripMenuItemQLDonHang_Click(object sender, EventArgs e) { Form frm = KiemTraTonTai(typeof(FormQuanLyDonHang)); if (frm != null) { frm.Activate(); } else { FormQuanLyDonHang fQLDonHang = new FormQuanLyDonHang(); fQLDonHang.MdiParent = this; fQLDonHang.Show(); } }
//Chuyển sang quản lý đơn hàng private void btnTimDonHang_Click(object sender, EventArgs e) { Form frm = ThongTin.KiemTraTonTai(typeof(FormQuanLyDonHang), this.ParentForm); if (frm != null) { frm.Activate(); } else { FormQuanLyDonHang fQLDonHang = new FormQuanLyDonHang(); fQLDonHang.MdiParent = this.ParentForm; fQLDonHang.Show(); } }
private void QuanLyDonHang_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form frm = KiemTraTonTai(typeof(FormQuanLyDonHang)); if (frm != null) { frm.Activate(); } else { FormQuanLyDonHang fQuanLyDonHang = new FormQuanLyDonHang(); fQuanLyDonHang.MdiParent = this; fQuanLyDonHang.Show(); } }