Ejemplo n.º 1
0
        public IPScannerForm()
        {
            InitializeComponent();
            List <Tuple <IPAddress, IPAddress> > ipRanges = IPRanges.GetOperationalIPRanges();

            if (ipRanges.Count > 0)
            {
                ipFrom.IPAddress = ipRanges[0].Item1;
                ipTo.IPAddress   = ipRanges[0].Item2;
            }
        }
Ejemplo n.º 2
0
 public RangeSelector()
 {
     InitializeComponent();
     foreach (Tuple <IPAddress, IPAddress> range in IPRanges.GetOperationalIPRanges())
     {
         ListViewItem item = new ListViewItem();
         item.Tag  = range;
         item.Text = range.Item1.ToString() + " - " + range.Item2.ToString();
         lvRanges.Items.Add(item);
     }
 }
Ejemplo n.º 3
0
        public IPScannerForm()
        {
            InitializeComponent();
            this.chPing.Width = 0;
            this.chHost.Width = 0;
            List <Tuple <IPAddress, IPAddress> > ipRanges = IPRanges.GetOperationalIPRanges();

            if (ipRanges.Count > 0)
            {
                ipFrom.IPAddress = ipRanges[0].Item1;
                ipTo.IPAddress   = ipRanges[0].Item2;
                startScanIP();
            }
        }