//Update the progress of copying the files and folders private void UpdateProgressbarAndCheckProgress() { SyncProgress.PerformStep(); FileLeftCounter.Text = templateCountLeftText + copyCountLeft.ToString(); if (copyCountLeft <= 0) { FileLeftCounter.Text = templateCountLeftText + 0; copyCountLeft = 0; SyncProgress.Value = SyncProgress.Maximum; } }