Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        public void LoadQLKhachHang()
        {
            BUS_KhachHang kh = new BUS_KhachHang();

            dgvQuanLyKhachHang.DataSource = kh.LoadKH();
        }