void HandleNbFound(object sender, EventArgs e) { NBFinder nb = sender as NBFinder; if (nb == null) return; NbInfo nb_info = new NbInfo { Addresses = nb.FoundDevices, ConfigRecords = nb.FoundConfigRecords }; _bgWorker.ReportProgress(0, nb_info); }
void HandleProgressChanged(object sender, ProgressChangedEventArgs e) { FoundNbInfo = (NbInfo)e.UserState; RaiseNbInfoFoundEvent(); }