private void DiscoverDevices(NIC nic) { EnableControls(false); listBox1.Items.Clear(); Discovery discovery = new Discovery(nic.IP); discovery.Discovered += OnDeviceDiscovered; discovery.DiscoveryFinished += OnDiscoveryFinished; discovery.Probe(); }
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); }
public override string ToString() { return(NIC != null?NIC.ToString(HWStyle) : string.Empty); }
public NICListItem(NIC nic, bool hwStyle) { NIC = nic; HWStyle = hwStyle; }