WinPSI/UControls/ucPager.cs

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Text.RegularExpressions;

namespace WinPSI.UControls
{
        public partial class ucPager : UserControl
        {
                public ucPager()
                {
                        InitializeComponent();
                }

                private int record = 0;
                /// <summary>
                /// 总记录数
                /// </summary>
                public int Record
                {
                        get { return record; }
                        set
                        {
                                record = value;
                                InitPageInfo();
                        }
                }

                private int startRecord = 1;
                public int StartRecord
                {
                        get { return (CurrentPage - 1) * PageSize + 1; }
                        set { startRecord = value; }
                }

                private int pageSize =5;

                /// <summary>
                /// 每页条数
                /// </summary>
                public int PageSize
                {
                        get { return pageSize; }
                        set { pageSize = value; }
                }

                private int currentPage = 1;

                /// <summary>
                /// 当前页
                /// </summary>
                public int CurrentPage
                {
                        get { return currentPage; }
后面还有 189 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。