private void OnWorkerCompleted(object sender, WorkerCompletedEventArgs e) { if (WorkerCompleted != null) { WorkerCompleted(sender, e); } }
private void taskManager_WorkerCompleted(object sender, MultithreadingWorker.WorkerCompletedEventArgs e) { // Find the matching item. foreach (ListViewItem item in listTasks.Items) { if (item.Text == e.ID.ToString()) { item.SubItems[2].Text = "Completed"; // Store the results for later use. // Could use a custom ListView here, but the // Tag is a messier shortcut. item.Tag = e.PrimeList; break; } } }
private void OnWorkerCompleted(object sender, WorkerCompletedEventArgs e) { if (WorkerCompleted != null) WorkerCompleted(sender, e); }