Skip to content

Commit

Permalink
Updated the inline documentation of various private methods of the Fr…
Browse files Browse the repository at this point in the history
…mRepBuilder class.
  • Loading branch information
xvitaly committed Dec 5, 2024
1 parent 94412ea commit 8dc60ef
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/srcrepair/FrmRepBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public FrmRepBuilder(string A, string L, string SD, string SL, SourceGame SG)
}

/// <summary>
/// Creates directories for storing generating report and working
/// directory if does not exists.
/// Creates a directory for storing generated reports and a working
/// directory for temporary files.
/// </summary>
private void CreateDirectories()
{
Expand All @@ -102,7 +102,7 @@ private void CreateDirectories()
}

/// <summary>
/// Creates compressed report and saves it to disk.
/// Creates a report file and saves it to disk.
/// </summary>
/// <param name="Progress">Instance of IProgress interface for reporting progress.</param>
private void CreateReportFile(IProgress<int> Progress)
Expand Down Expand Up @@ -181,7 +181,7 @@ private void CreateReportFile(IProgress<int> Progress)
}

/// <summary>
/// Removes temporary working directory with all its contents.
/// Removes a working directory with temporary files.
/// </summary>
private void CleanupDirectories()
{
Expand All @@ -199,7 +199,7 @@ private void CleanupDirectories()
}

/// <summary>
/// Removes generated report file if exists.
/// Removes a generated report file.
/// </summary>
private void RemoveReportFile()
{
Expand Down Expand Up @@ -229,7 +229,7 @@ private void ShowReportFile()
}

/// <summary>
/// Enables status bar and hides some buttons.
/// Enables the progress bar, hides some buttons and the form control box.
/// </summary>
private void FormStart()
{
Expand All @@ -240,7 +240,8 @@ private void FormStart()
}

/// <summary>
/// Disables status bar and show all previously hidden buttons.
/// Disables the progress bar, shows all previously hidden buttons and
/// the form control box.
/// </summary>
private void FormFinalize()
{
Expand Down Expand Up @@ -270,7 +271,7 @@ private void FormComplete()
}

/// <summary>
/// Handles errors during report generation.
/// Handles errors during the report generation.
/// </summary>
private void FormError()
{
Expand All @@ -280,7 +281,7 @@ private void FormError()
}

/// <summary>
/// Asynchronously generates reports.
/// Asynchronously generates a report.
/// </summary>
/// <param name="Progress">Instance of IProgress interface for reporting progress.</param>
private async Task CreateReport(IProgress<int> Progress)
Expand All @@ -294,7 +295,7 @@ await Task.Run(() =>
}

/// <summary>
/// Reports progress to progress bar on form.
/// Reports progress to the progress bar on the form.
/// </summary>
/// <param name="Progress">Current progress percentage.</param>
private void ReportProgress(int Progress)
Expand Down

0 comments on commit 8dc60ef

Please sign in to comment.