void XuLyHoTroAutocomlet() { txtsodt.AutoCompleteCustomSource.Clear(); foreach (eKhachHang k in wcf_kh.GetKhachHangs()) { txtsodt.AutoCompleteCustomSource.Add(k.soDienThoai); } }
private void button5_Click(object sender, EventArgs e) { ThemKhachHang frm = new ThemKhachHang(); frm.ShowDialog(); loaddatagridview_dskh(dvwDSBN, wcf.GetKhachHangs().ToList()); txtDiaChi.Text = DiaChi; txtSodt.Text = SoDienThoai; txtMaKH.Text = MaKhachHang; dtpNgayKham.Value = NgaySinh; txtTenBN.Text = HoTen; if (GioiTinh) { radNam.Checked = true; } else { radNu.Checked = false; } }
private void frmQuanLyBenhNhan_Load(object sender, EventArgs e) { LoadDSKhachHang(dvwDSBN, khwcf.GetKhachHangs().ToList()); }
private void Form1_Load(object sender, EventArgs e) { biding.DataSource = client.GetKhachHangs().ToList(); dgv_dsbenhnhan.DataSource = biding; }