private void textBox1_TextChanged(object sender, EventArgs e) { BUS_KhachHang kh = new BUS_KhachHang(); if (string.IsNullOrEmpty(txtTimKiem.Text)) { dgvTimKH.DataSource = kh.LoadKH(); } else { dgvTimKH.DataSource = kh.TimKhachHang(txtTimKiem.Text); } }
public void LoadQLKhachHang() { BUS_KhachHang kh = new BUS_KhachHang(); dgvQuanLyKhachHang.DataSource = kh.LoadKH(); }