private void OnWorkerCompleted(object sender, WorkerCompletedEventArgs e)
 {
     if (WorkerCompleted != null)
     {
         WorkerCompleted(sender, e);
     }
 }
Exemple #2
0
        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;
                }
            }
        }
Exemple #3
0
		private void OnWorkerCompleted(object sender, WorkerCompletedEventArgs e)
		{
			if (WorkerCompleted != null)
				WorkerCompleted(sender, e);
		}