public QLKhachHangUS() { InitializeComponent(); btnpre.Content = "<"; btnfirst.Content = "<<"; var db = this.FindResource("Caffein") as ViewModel.Caffein; db.CurPage = 1; cmbdskh.SelectedIndex = 0; //dataGrid.DataContext = kh.LayViewKH(); int totalPage; db.ViewKhachHang = kh.LayViewKH(db.CurPage, ViewModel.Caffein.PageSize, out totalPage); dataGrid.DataContext = db.ViewKhachHang; db.TotalPage = totalPage; }
public TKKhachHang() { KhachHang kh = new KhachHang(); InitializeComponent(); dgvTKKhachHang.DataContext = kh.LayViewKH(); }
private void btnRefreshTKKhachHang_Click(object sender, RoutedEventArgs e) { txtID.Text = ""; txtCMND.Text = ""; txtHT.Text = ""; txtSDT.Text = ""; KhachHang kh = new KhachHang(); //dgvHoaDonBan.DataContext = hdb.LayHDBan_QL(); dgvTKKhachHang.DataContext = kh.LayViewKH(); }