Exemplo n.º 1
0
        //button chuyển kho
        private void btnWarehouseTransfer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmWarehouseTransfer));

            if (f == null)
            {
                Form fWarehouseTransfer = new frmWarehouseTransfer();
                fWarehouseTransfer.MdiParent = this;
                fWarehouseTransfer.Show();
            }
            else
            {
                f.Activate();
            }
        }
Exemplo n.º 2
0
        private void BtnWarehouseTransfer_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmWarehouseTransfer));

            VaiTro_ChucNangDTO pqck = btnChuyenKho.Tag as VaiTro_ChucNangDTO;

            if (f == null)
            {
                frmWarehouseTransfer fWarehouseTransfer = new frmWarehouseTransfer(pqck, username);
                fWarehouseTransfer.ThemNhatKyHeThong += ThemNhatKy_Main;
                fWarehouseTransfer.MdiParent          = this;
                fWarehouseTransfer.Show();
            }
            else
            {
                f.Activate();
            }
        }