private void sanPhamToolStripMenuItemQLLaoiSanPham_Click(object sender, EventArgs e) { Form frm = KiemTraTonTai(typeof(FormQuanLyLoaiSanPham)); if (frm != null) { frm.Activate(); } else { FormQuanLyLoaiSanPham fQLLoaiSanPham = new FormQuanLyLoaiSanPham(); fQLLoaiSanPham.MdiParent = this; fQLLoaiSanPham.Show(); } }
private void LoaiSanPham_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form frm = KiemTraTonTai(typeof(FormQuanLyLoaiSanPham)); if (frm != null) { frm.Activate(); } else { FormQuanLyLoaiSanPham fQLLoaiSanPham = new FormQuanLyLoaiSanPham(); fQLLoaiSanPham.MdiParent = this; fQLLoaiSanPham.Show(); } }