private void UpdateProgress(int progressValue) { if (GlobalData.backgroundWorker != null) { progressBar.BeginInvoke(new UpdateCurrentProgressBarCallback(this.UpdateCurrentProgressBar), new object[] { progressValue }); } }