Skip to content

Add AboutBox and refactor MainForm for better clarity#13

Merged
kduma merged 3 commits into
masterfrom
about-box
Sep 6, 2025
Merged

Add AboutBox and refactor MainForm for better clarity#13
kduma merged 3 commits into
masterfrom
about-box

Conversation

@kduma

@kduma kduma commented Sep 6, 2025

Copy link
Copy Markdown
Contributor

Add AboutBox and refactor MainForm for better clarity

This commit introduces a new AboutBox class along with its designer and resource files, providing an interface for displaying application information. The MainForm is updated to include a Help menu with an About option that opens the new dialog.

Refactoring includes changing the file tasks collection to a private readonly type for improved encapsulation, updating event handler names for clarity, and simplifying code for better readability. Unused using directives have been removed from CheckCommand.cs and Checker.cs.

This commit introduces a new `AboutBox` class along with its designer and resource files, providing an interface for displaying application information. The `MainForm` is updated to include a Help menu with an About option that opens the new dialog.

Refactoring includes changing the file tasks collection to a private readonly type for improved encapsulation, updating event handler names for clarity, and simplifying code for better readability. Unused `using` directives have been removed from `CheckCommand.cs` and `Checker.cs`.
@kduma kduma requested a review from Copilot September 6, 2025 22:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces an AboutBox component to the FileHasher application and refactors MainForm code for improved clarity and maintainability. The changes include adding a Help menu with an About option, improving encapsulation with a private readonly collection, and cleaning up unused imports.

Key changes:

  • Added complete AboutBox implementation with dialog form and version display functionality
  • Refactored MainForm with better naming conventions, improved encapsulation, and code simplification
  • Removed unused using directives from library components

Reviewed Changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
FileHasher.Library/Checker.cs Removed unused System using directive
FileHasher.GUI.WinForms/MainForm.cs Major refactoring with improved naming, encapsulation, and code simplification
FileHasher.GUI.WinForms/AboutBox.resx Added complete resource file for AboutBox dialog
FileHasher.GUI.WinForms/AboutBox.cs Added new AboutBox class with version display functionality
FileHasher.CLI.Commands/CheckCommand.cs Removed unused System.Text using directive
Files not reviewed (2)
  • FileHasher.GUI.WinForms/AboutBox.Designer.cs: Language not supported
  • FileHasher.GUI.WinForms/MainForm.Designer.cs: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread FileHasher.GUI.WinForms/MainForm.cs Outdated
Comment thread FileHasher.GUI.WinForms/MainForm.cs Outdated
kduma and others added 2 commits September 7, 2025 00:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kduma kduma merged commit 0b58aa8 into master Sep 6, 2025
1 check passed
@kduma kduma deleted the about-box branch September 6, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants