예제 #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;
 }