示例#1
0
        private void SuKienLoadForm()
        {
            txtTenKhachHang.Text = "";
            txtDiaChi.Text       = "";
            txtCMND.Text         = "";
            List <KhachHangDTO> lst = KhachHangBUS.LayDSLoaiKhach();

            cmbLoaiKhach.Items.Clear();
            for (int i = 0; i < (lst.Count); i++)
            {
                cmbLoaiKhach.Items.Add(lst[i].LoaiKhach);
            }
            cmbPhong.DisplayMember         = "MaPhong";
            cmbPhong.ValueMember           = "MaPhong";
            cmbPhong.DataSource            = PhongBUS.DanhSachPhongDangDuocThue();
            gcDanhSachKhachHang.DataSource = KhachHangBUS.DanhSachKhachHang();
        }