Пример #1
0
        //button mua hàng
        private void btnBuy_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmBuy));

            if (f == null)
            {
                Form fBuy = new frmBuy();
                fBuy.MdiParent = this;
                fBuy.Show();
            }
            else
            {
                f.Activate();
            }
        }
Пример #2
0
        private void BtnBuy_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmBuy));

            VaiTro_ChucNangDTO phanquyenMH = btnMuaHang.Tag as VaiTro_ChucNangDTO;

            if (f == null)
            {
                frmBuy fBuy = new frmBuy(phanquyenMH, username);
                fBuy.ThemNhatKyHeThong += ThemNhatKy_Main;
                fBuy.MdiParent          = this;
                fBuy.Show();
            }
            else
            {
                f.Activate();
            }
        }