Пример #1
0
        private void btnDocSach_Click(object sender, EventArgs e)
        {
            FDocSach Fdosach = new FDocSach();

            Fdosach.FilePDF = textBox1.Text;
            this.Hide();
            Fdosach.ShowDialog();
        }
Пример #2
0
        private void dgEbookUser_DoubleClick(object sender, EventArgs e)
        {
            FDocSach Fdosach = new FDocSach();

            lblTenSach.Text  = dgEbookUser.CurrentRow.Cells[0].Value.ToString();
            txtNamXB.Text    = dgEbookUser.CurrentRow.Cells[1].Value.ToString();
            txtTG.Text       = dgEbookUser.CurrentRow.Cells[2].Value.ToString();
            txtTL.Text       = dgEbookUser.CurrentRow.Cells[3].Value.ToString();
            txtNXB.Text      = dgEbookUser.CurrentRow.Cells[4].Value.ToString();
            pbEbook.Image    = new Bitmap(dgEbookUser.CurrentRow.Cells[5].Value.ToString());
            pbEbook.SizeMode = PictureBoxSizeMode.StretchImage;
            textBox1.Text    = dgEbookUser.CurrentRow.Cells[6].Value.ToString();
        }