Exemple #1
0
        private void toolStrip_Tra_Click(object sender, EventArgs e)
        {
            frmPhieuTra frm = new frmPhieuTra();

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

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