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