Пример #1
0
 private void BunifuImageButton1_Click(object sender, EventArgs e)
 {
     try
     {
         dgvLSdonhang.DataSource = db.Lichsuadonhang(db.getmakh(email));
         lbMadh.Text             = dgvLSdonhang.CurrentRow.Cells[0].Value.ToString();
         lbPhi.Text       = dgvLSdonhang.CurrentRow.Cells[1].Value.ToString();
         lbngaydat.Text   = dgvLSdonhang.CurrentRow.Cells[2].Value.ToString();
         lbTinhtrang.Text = db.Tinhtrang(Convert.ToInt32(dgvLSdonhang.CurrentRow.Cells[3].Value.ToString()));
     }
     catch (Exception)
     {
         return;
     }
 }