Exemplo n.º 1
0
 private void txtSearchHistory_TextChanged(object sender, EventArgs e)
 {
     if (txtSearchHistory.Text.Trim().Equals(""))
     {
         LoadData();
     }
     else
     {
         //  DataTable dt = ManagerDAL.FindBook(txtSearch.Text.Trim());
         list                  = ManagerDAL.FindHistory(txtSearchHistory.Text);
         dtHistory             = ManagerDAL.ToDataTable <Booking>(list);
         dgvHistory.DataSource = dtHistory;
         //  dgvRecepts.DataSource = dt;
     }
 }