Pass variable to RunWorkerCompleted() after DoWork() is done
<p>I am using VS 2015 winform background workers to do some tasks.</p>

<p>I have <code>DoWork()</code> method that uses <code>List&lt;string&gt; myList</code>, and it removes each entry in the list once certain process is complete. My goal is to let users know which entry in <code>myList</code> was not processed (since it deletes an entry after every process, whatever is left in the end is the one that is NOT processed). To do so, I was going to pass the <code>myList</code> variable to <code>RunWorkerCompleted()</code>, but not only do I not know how to do this, I am not even sure if this is the best way of doing it. </p>

<p>Are there better ways to let users know which entry in <code>myList</code> was not processed, and if not, how would I pass a variable from DoWork() to RunWorkerCompleted()?</p>

<p>Current RunWorkerCompleted() method:</p>

<pre><code>private void bgw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
    if(e.Error != null)
    {
        MessageBox.Show(e.Error.ToString());
    }
    else
    {
        MessageBox.Show("Done!");
    }
}
</code></pre>

<p>Basically, I want the MessageBox to display which entries are not processed when it's done running a task</p>