예제 #1
0
        private void LinkbuttonNext_Command(object source, CommandEventArgs e)
        {
            IPaginatedList productList = this.NPetshopState.CurrentList;

            productList.NextPage();
            DataBind();
        }
예제 #2
0
        protected void LinkbuttonNext_Command(object source, System.Web.UI.WebControls.CommandEventArgs e)
        {
            IPaginatedList productList = this.NPetshopState.CurrentList;

            productList.NextPage();
            DataBind();
        }
예제 #3
0
        private void LinkbuttonNext_Command(object source, System.Web.UI.WebControls.CommandEventArgs e)
        {
            IPaginatedList productList = this.WebLocalSingleton.CurrentList;

            productList.NextPage();
            this.CurrentController.NextView = WebViews.PRODUCTS_BY_CATEGORY;
        }
예제 #4
0
        public IEnumerator GetAllLines()
        {
            ArrayList allItems = new ArrayList();
            int       index    = _cartLines.PageIndex;

            _cartLines.GotoPage(0);

            foreach (ShoppingCartLine line in _cartLines)
            {
                allItems.Add(line);
            }
            while (_cartLines.NextPage())
            {
                foreach (ShoppingCartLine line in _cartLines)
                {
                    allItems.Add(line);
                }
            }

            _cartLines.GotoPage(index);
            return(allItems.GetEnumerator());
        }