private void InitProgressBars() { var max = FileSystemController.CountFilesAndDirectories(this.sitePath); if (max > 0) { this.progressDeleteFiles.Maximum = max; } this.UpdateTotalProgress(); }