コード例 #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();
            }
        }
コード例 #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();
            }
        }