5.2 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | ||
|---|---|---|---|---|---|---|
|
2026-04-17T15:57:05.450580+00:00 | zai-org/GLM-5-FP8 | 1 | 838545b37fdb28f7 |
Documentation: ResolveChannels (Auto-Generated WPF Component)
1. Purpose
This file contains the auto-generated partial class for ResolveChannels, a WPF user control that appears to manage channel resolution workflows within a data collection system. The control provides UI for categorizing and filtering channels across multiple states (unresolved, resolved, extra IDs, out-of-place, and hardware channels). This is build-generated code from ResolveChannels.xaml and should not be edited directly; the actual business logic resides in a separate code-behind file not provided here.
2. Public Interface
Class Declaration
public partial class ResolveChannels : DataPROWin7.SubControls.SubControl, System.Windows.Markup.IComponentConnector
Public Methods
| Method | Signature | Description |
|---|---|---|
InitializeComponent |
public void InitializeComponent() |
Loads the XAML component resource. Idempotent—returns early if already called. |
Internal Fields (XAML Element References)
| Field | Type | XAML Line | Purpose |
|---|---|---|---|
resolveChannels |
DataPROWin7.SubControls.ResolveChannels |
12 | Self-reference to the control instance |
ctrlStatusRibbon |
DataPROWin7.Controls.StatusRibbon |
45 | Status ribbon control |
ctrlUnResolvedContainer |
System.Windows.Controls.ContentControl |
61 | Container for unresolved channel items |
ctrlResolvedContainer |
System.Windows.Controls.ContentControl |
64 | Container for resolved channel items |
ctrlExtraIdsContiner |
System.Windows.Controls.ContentControl |
66 | Container for extra ID items |
ctrlOutOfPlaceContainer |
System.Windows.Controls.ContentControl |
68 | Container for out-of-place items |
rbAllChannels |
System.Windows.Controls.RadioButton |
83 | Filter: show all channels |
rbOpenChannels |
System.Windows.Controls.RadioButton |
84 | Filter: show open channels |
rbInUseChannels |
System.Windows.Controls.RadioButton |
85 | Filter: show in-use channels |
rbManuallyAssigned |
System.Windows.Controls.RadioButton |
86 | Filter: show manually assigned channels |
ctrlHardwareChannelsContainer |
System.Windows.Controls.ContentControl |
89 | Container for hardware channel items |
Event Handlers (Referenced, Not Defined)
The following event handlers are wired to Checked events on RadioButtons but are not defined in this generated file:
rbAllChecked— wired torbAllChannels.CheckedrbOpenChecked— wired torbOpenChannels.CheckedrbInUseChecked— wired torbInUseChannels.CheckedrbManuallyAssignedChecked— wired torbManuallyAssigned.Checked
3. Invariants
- Idempotent Initialization:
InitializeComponent()will only execute its logic once; subsequent calls return immediately due to the_contentLoadedflag check. - Fixed Resource URI: The XAML resource is located at
/DataPRO;component/collectdatasubcontrols/resolvechannels/resolvechannels.xaml(relative URI). - Connection ID Mapping: The
IComponentConnector.Connectmethod maps integer IDs 1–11 to specific named controls. This mapping is generated from XAML and must remain synchronized with the XAML file. - Inheritance:
ResolveChannelsmust always inherit fromDataPROWin7.SubControls.SubControlas defined in the XAML.
4. Dependencies
This Module Depends On
DataPROWin7(root namespace)DataPROWin7.CommonDataPROWin7.Controls(specificallyStatusRibbon)DataPROWin7.SubControls(specificallySubControlbase class)System.Windows.*(WPF framework:System.Windows,System.Windows.Controls,System.Windows.Markup, etc.)
What Depends On This Module
- Unclear from source alone — the partial class suggests a code-behind file (
ResolveChannels.xaml.cs) exists that completes the implementation, but it is not provided.
5. Gotchas
-
Auto-Generated Code: Both
.g.csand.g.i.csfiles are build outputs fromPresentationBuildTasks. Any manual edits will be overwritten on rebuild. The actual implementation is in the code-behind file. -
Typo in Field Name:
ctrlExtraIdsContineris misspelled (should bectrlExtraIdsContainer). This typo originates from the XAMLx:Nameattribute and will propagate throughout the codebase. -
Missing Code-Behind: The event handlers (
rbAllChecked,rbOpenChecked,rbInUseChecked,rbManuallyAssignedChecked) are referenced but not defined in these files. Their implementation resides in the partial class counterpart (ResolveChannels.xaml.cs), which was not provided. -
Duplicate Files: The
.g.csand.g.i.csfiles appear identical. In WPF builds,.g.csis typically generated for regular builds while.g.i.csis used for IntelliSense. Both should be treated as ephemeral build artifacts. -
Namespace Mismatch: The project is named
DataPRObut the namespace isDataPROWin7,