Skip to content

Move connect/disconnect button into device list#96

Merged
Aurumaker72 merged 2 commits intomainfrom
95-move-connectdisconnect-button-into-device-list
Nov 2, 2025
Merged

Move connect/disconnect button into device list#96
Aurumaker72 merged 2 commits intomainfrom
95-move-connectdisconnect-button-into-device-list

Conversation

@Aurumaker72
Copy link
Collaborator

Closes #95

Copilot AI review requested due to automatic review settings November 2, 2025 09:53
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.

Pull Request Overview

This PR refactors the device list functionality by removing the separate DeviceListControl user control and integrating its functionality directly into the MainForm. This simplifies the codebase architecture by eliminating an unnecessary abstraction layer.

Key changes:

  • Removed standalone DeviceListControl class and merged device list logic into MainForm
  • Added arrow_refresh icon resource for the refresh button
  • Updated UI layout to integrate device list panel directly into the main form's split container
  • Simplified label text from "Connected Devices" to "Devices"

Reviewed Changes

Copilot reviewed 4 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Key2Joy.Gui/MainForm_DeviceList.cs Device list methods moved from DeviceListControl to MainForm as partial class methods
Key2Joy.Gui/MainForm.cs Added device refresh call in constructor and refresh button click handler
Key2Joy.Gui/MainForm.Designer.cs Integrated device list UI components directly into MainForm, replaced text-based refresh button with icon button
Key2Joy.Gui/MainForm.resx Minor formatting change (newline at end of file)
Key2Joy.Gui/DeviceListControl.cs Removed (merged into MainForm)
Key2Joy.Gui/DeviceListControl.Designer.cs Removed (merged into MainForm)
Key2Joy.Gui/DeviceListControl.resx Removed (merged into MainForm)
Key2Joy.Gui/Properties/Resources.resx Added arrow_refresh icon resource, reorganized existing resources alphabetically
Key2Joy.Gui/Properties/Resources.Designer.cs Added arrow_refresh property accessor
Key2Joy.Gui/Graphics/Icons/arrow_refresh.png New refresh icon image file
Files not reviewed (3)
  • Key2Joy.Gui/DeviceListControl.Designer.cs: Language not supported
  • Key2Joy.Gui/MainForm.Designer.cs: Language not supported
  • Key2Joy.Gui/Properties/Resources.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@luttje luttje self-requested a review November 2, 2025 18:07
Copy link
Collaborator

@luttje luttje left a comment

Choose a reason for hiding this comment

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

Nice, LGTM, thanks!

@Aurumaker72 Aurumaker72 merged commit 24514ea into main Nov 2, 2025
7 of 8 checks passed
@Aurumaker72 Aurumaker72 deleted the 95-move-connectdisconnect-button-into-device-list branch November 2, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Move Connect/Disconnect button into Device List

3 participants