예제 #1
0
 void XuLyHoTroAutocomlet()
 {
     txtsodt.AutoCompleteCustomSource.Clear();
     foreach (eKhachHang k in wcf_kh.GetKhachHangs())
     {
         txtsodt.AutoCompleteCustomSource.Add(k.soDienThoai);
     }
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
 private void frmQuanLyBenhNhan_Load(object sender, EventArgs e)
 {
     LoadDSKhachHang(dvwDSBN, khwcf.GetKhachHangs().ToList());
 }
예제 #4
0
 private void Form1_Load(object sender, EventArgs e)
 {
     biding.DataSource         = client.GetKhachHangs().ToList();
     dgv_dsbenhnhan.DataSource = biding;
 }