private void encodingBackgroundWorker2_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { int endProgress = encodeProgress.Maximum; if (encodeAborted) { endProgress = encodeProgress.Maximum - abortedQueueSize; } encodeProgress.Value = endProgress; // update the status text encodeStatus.Text = "" + encodeProgress.Value + " of " + encodeProgress.Maximum + " files completed"; encodeButton.Text = "Encode!"; encodeButton.Enabled = true; encodeInProgress = false; if (consoleMessagesQueued) { ConsoleWindow consoleWin = new ConsoleWindow(); consoleWin.AddResults(resultsList); consoleWin.ShowDialog(this); } }