Skip to content

Updating nuget packages + small cleanup#1796

Merged
niels9001 merged 10 commits intomainfrom
user/niels9001/mainwindow
Mar 19, 2025
Merged

Updating nuget packages + small cleanup#1796
niels9001 merged 10 commits intomainfrom
user/niels9001/mainwindow

Conversation

@niels9001
Copy link
Collaborator

  • Update NugetPackages
  • Cleaning up App.xaml.cs by moving helpers

@niels9001 niels9001 requested a review from Copilot March 7, 2025 14:13
@niels9001 niels9001 changed the title User/niels9001/mainwindow Updating nuget packages + small cleanup Mar 7, 2025
@niels9001 niels9001 requested a review from marcelwgn March 7, 2025 14:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR updates NuGet packages and cleans up App.xaml.cs by moving helper methods into dedicated helper classes. Key changes include:

  • Creating VersionHelper.cs and EnumHelper.cs to encapsulate version information and enum parsing logic.
  • Refactoring usage in App.xaml.cs, SettingsPage.xaml.cs, HomePage.xaml.cs, ThemeHelper.cs, and TitleBarPage.xaml.cs to use the new helper methods.
  • Removing duplicate helper code from App.xaml.cs to clean up the application startup code.

Reviewed Changes

File Description
WinUIGallery/Helpers/VersionHelper.cs New file for version details with dynamic runtime info retrieval.
WinUIGallery/Helpers/EnumHelper.cs New file for enum parsing logic, replacing duplicate implementations.
WinUIGallery/App.xaml.cs Removed duplicated version and enum conversion code, now relying on helper classes.
WinUIGallery/Helpers/ThemeHelper.cs Refactored to use EnumHelper for converting strings to enums.
WinUIGallery/Pages/SettingsPage.xaml.cs Updated to use VersionHelper and EnumHelper for version and enum handling.
WinUIGallery/Pages/HomePage.xaml.cs Updated to use VersionHelper for displaying version details.
WinUIGallery/Samples/ControlPages/TitleBarPage.xaml.cs Refactored enum conversion to use EnumHelper for title bar height option.

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

@niels9001 niels9001 requested a review from marcelwgn March 10, 2025 15:34
@marcelwgn
Copy link
Contributor

/azp run

1 similar comment
@ayushjai30
Copy link

/azp run

@ayushjai30
Copy link

/azp run

1 similar comment
@ayushjai30
Copy link

/azp run

@ayushjai30
Copy link

/azp run

@niels9001 niels9001 enabled auto-merge (squash) March 19, 2025 14:14
@niels9001
Copy link
Collaborator Author

/azp run

@niels9001 niels9001 merged commit a54f6da into main Mar 19, 2025
2 checks passed
@niels9001 niels9001 deleted the user/niels9001/mainwindow branch March 19, 2025 15:04
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.

4 participants