Beispiel #1
0
        bool IPropertyManagerPage2Handler9.OnPreviousPage()
        {
            if (OnPreviousPage.IsRef())
            {
                return(OnPreviousPage());
            }

            return(true);
        }
Beispiel #2
0
        /// <summary>
        /// 滚动到第几页
        /// </summary>
        /// <param name="index"></param>
        public void Go(int index)
        {
            if (index == Index)
            {
                return;
            }
            if (index < 0)
            {
                OnPreviousPage?.Invoke(this, new EventArgs());
                return;
            }

            if (index >= Count)
            {
                OnNextPage?.Invoke(this, new EventArgs());
                return;
            }
            GoIndex(index);
        }