Esempio n. 1
0
        public BindableCollection <Product> GetProductPagination(int _curr)
        {
            CurrentPage = _curr;
            Sum_record  = GetListObject.Get_CountALLProduct();
            CalculateTotalPage(record1pageProduct);
            int sotranghienhanh = (CurrentPage - 1) * record1pageProduct;

            return(Get_AllProduct(sotranghienhanh, record1pageProduct));
        }
Esempio n. 2
0
        public BindableCollection <Order> GetOrderPagination(int _curr)
        {
            CurrentPage = _curr;
            Sum_record  = GetListObject.Get_CountALLOrder();
            CalculateTotalPage(record1pageOrder);
            int sotranghienhanh = (CurrentPage - 1) * record1pageOrder;

            return(Get_AllOrder(sotranghienhanh, record1pageOrder));
        }