Exemple #1
0
 private void tb_SDT_TextChanged(object sender, EventArgs e)
 {
     lb_SDT.Text = tb_SDT.Text;
     if (busKH.KiemTraSDT(lb_SDT.Text))
     {
         DataTable dt = busKH.LayThongTinKhachHangSDT(lb_SDT.Text);
         lbMKH.Text   = dt.Rows[0].ItemArray[0].ToString();
         lbTenKH.Text = dt.Rows[0].ItemArray[1].ToString();
         lb_SDT.Text  = dt.Rows[0].ItemArray[2].ToString();
     }
     else
     {
         lbMKH.Text   = "___";
         lbTenKH.Text = "___";
         lb_SDT.Text  = "___";
     }
 }