Ejemplo n.º 1
0
        private void sanPhamToolStripMenuItemQLSanPham_Click(object sender, EventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormQuanLySanPham));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormQuanLySanPham fQLSanPham = new FormQuanLySanPham();
                fQLSanPham.MdiParent = this;
                fQLSanPham.Show();
            }
        }
Ejemplo n.º 2
0
        private void SanPhamMoi_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormQuanLySanPham));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormQuanLySanPham fQLSanPham = new FormQuanLySanPham();
                fQLSanPham.MdiParent = this;
                fQLSanPham.Show();
            }
        }