Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating nuget packages + small cleanup #1796

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

niels9001
Copy link
Contributor

  • 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

@Copilot 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
Collaborator

/azp run

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.

3 participants