Esempio n. 1
0
 private void load()
 {
     dt             = sach.searchData(iD);
     lbTenS.Text    = dt.Rows[0][1].ToString();
     lbTL.Text      = dt.Rows[0][2].ToString();
     lbTG.Text      = dt.Rows[0][3].ToString();
     lbNamXB.Text   = dt.Rows[0][4].ToString();
     lbnhaXB.Text   = dt.Rows[0][5].ToString();
     anh.Image      = Image.FromFile(dt.Rows[0][6].ToString());
     lbSL.Text      = dt.Rows[0][7].ToString();
     lbDG.Text      = dt.Rows[0][8].ToString();
     lbVT.Text      = dt.Rows[0][9].ToString();
     txbReview.Text = dt.Rows[0][10].ToString();
     anh.SizeMode   = PictureBoxSizeMode.StretchImage;
     if (iDU != "")
     {
         dataGridView1.DataSource = sach.xemcts(iD);
     }
 }