private void Discovery_DeviceDiscovered(object sender, DeviceDiscoveryEventArgs e) { lstDeviceList.InvokeIfRequired(() => { lstDeviceList.Items.Add(new DeviceAggregate(e.Report)); }); }
protected virtual void OnDiscoveryReply(DeviceDiscoveryEventArgs args) { DeviceDiscoverReply?.Invoke(this, args); }
protected virtual void OnDeviceDetect(DeviceDiscoveryEventArgs args) { DeviceDetect?.Invoke(this, args); }