Пример #1
0
        private void DiscoverDevices(NIC nic)
        {
            EnableControls(false);

            listBox1.Items.Clear();

            Discovery discovery = new Discovery(nic.IP);

            discovery.Discovered        += OnDeviceDiscovered;
            discovery.DiscoveryFinished += OnDiscoveryFinished;
            discovery.Probe();
        }
Пример #2
0
        private void ProbeDevice(NIC nic, IPAddress address)
        {
            EnableControls(false);

            Cursor.Current = Cursors.WaitCursor;

            Discovery discovery = new Discovery(IPAddress.Any);

            //Discovery discovery = new Discovery(nic.IP);
            discovery.Discovered        += OnDeviceDiscovered;
            discovery.DiscoveryFinished += OnDiscoveryFinished;
            discovery.Probe(address);
        }
Пример #3
0
 public override string ToString()
 {
     return(NIC != null?NIC.ToString(HWStyle) : string.Empty);
 }
Пример #4
0
 public NICListItem(NIC nic, bool hwStyle)
 {
     NIC     = nic;
     HWStyle = hwStyle;
 }