private void backgroundWorkerRetreive_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { //Clear status message statusLabel.Text = ""; queryLevelComboBox.Enabled = true; patientIdTextBox.Enabled = true; patientNameTextBox.Enabled = true; toolStripButtonReSet.Enabled = true; buttonLog.Enabled = true; panelPatGrid.Visible = true; string statusResponseMsg = "Completed Operations (" + retrieveThread.CompleteSubOperations + ")\n" + "Failed Operations (" + retrieveThread.FailedSubOperations + ")\n" + "Remaining Operations (" + retrieveThread.RemainingSubOperations + ")\n" + "Warning Operations (" + retrieveThread.WarningSubOperations + ")"; richTextBox1.Text = statusResponseMsg; if ((isStoreThreadRunning) && (scpStoreDicomThread.ThreadState != DvtkThreads.ThreadState.Stopped)) { scpStoreDicomThread.Stop(); isStoreThreadRunning = false; } }