コード例 #1
0
        //button Nhóm hàng
        private void btnGroupOfGoods_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmGroupOfGoods));

            if (f == null)
            {
                Form fGroupOfGoods = new frmGroupOfGoods();
                fGroupOfGoods.MdiParent = this;
                fGroupOfGoods.Show();
            }
            else
            {
                f.Activate();
            }
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: ping203/Perfect-Software
        private void BtnGroupOfGoods_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmGroupOfGoods));

            if (f == null)
            {
                VaiTro_ChucNangDTO pqdvt = btnNhomHang.Tag as VaiTro_ChucNangDTO;

                frmGroupOfGoods fGroupOfGoods = new frmGroupOfGoods(pqdvt, username);
                fGroupOfGoods.ThemNhatKyHeThong += ThemNhatKy_Main;
                fGroupOfGoods.MdiParent          = this;
                fGroupOfGoods.Show();
            }
            else
            {
                f.Activate();
            }
        }