Exemplo n.º 1
0
        void InitIpNumber()
        {
            ConfigurationItems config    = new ConfigurationItems();
            VIpAddressService  ipservice = new VIpAddressService(config.IpDataSrc);

            totalIp = ipservice.Count();
        }
Exemplo n.º 2
0
        void QueryIpSrc()
        {
            int start = (pageIndex - 1) * pageList + 1;
            int end   = pageIndex * pageList;

            if (start >= totalIp)
            {
                rtbTip.Text = "已执行到最后一条";
                return;
            }
            ConfigurationItems config    = new ConfigurationItems();
            VIpAddressService  ipservice = new VIpAddressService(config.IpDataSrc);

            foreachIP = ipservice.GetIpData(start, end);
            pageIndex++;
        }