Пример #1
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrWhiteSpace(txtSearch.Text) == true)
     {
         MessageBox.Show("Please enter the Customer ID or Name to search!", "SEARCH", MessageBoxButtons.OK, MessageBoxIcon.Information);
         txtSearch.Focus();
     }
     else
     {
         dgvCustomer.DataSource = bus_cus.Search(txtSearch.Text, txtSearch.Text);
         ResetValues();
     }
 }