Ejemplo n.º 1
0
        private void toolStripBt_Muon_Click(object sender, EventArgs e)
        {
            frmPhieuMuon frm = new frmPhieuMuon();

            frm.HoTenDG  = dgv_DuLieu.CurrentRow.Cells["cl_HoTen"].Value.ToString();
            frm.IDLoaiDG = Int32.Parse(dgv_DuLieu.CurrentRow.Cells["cl_ID"].Value.ToString());
            frm.Show();
        }
Ejemplo n.º 2
0
        private void btn_MuonSach_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = this.KiemTra(typeof(frmPhieuMuon));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmPhieuMuon f = new frmPhieuMuon();
                f.MdiParent = this;
                f.Dock      = DockStyle.Fill;
                f.Show();
            }
        }