4.0 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | ||
|---|---|---|---|---|---|---|
|
2026-04-16T13:55:15.087802+00:00 | zai-org/GLM-5-FP8 | 1 | a0b85470cc6f6727 |
Documentation: DTS.Viewer.TestSummaryList Views
1. Purpose
This module provides WPF view components for displaying and interacting with test summary data in the DTS Viewer application. It contains two code-behind classes (TestSummaryView and TestSummaryListView) that implement ITestSummaryListView and serve as the visual presentation layer for test summary lists. The module enables user interaction with test summary items, specifically allowing selection toggling via keyboard input.
2. Public Interface
TestSummaryView (class)
Namespace: DTS.Viewer.TestSummaryList
Implements: ITestSummaryListView
| Member | Signature | Description |
|---|---|---|
| Constructor | public TestSummaryView() |
Initializes the view by calling InitializeComponent(). |
TestSummaryListView (class)
Namespace: DTS.Viewer.TestSummaryList
Implements: ITestSummaryListView
| Member | Signature | Description |
|---|---|---|
| Constructor | public TestSummaryListView() |
Initializes the view by calling InitializeComponent(). |
TestSummary_KeyUp |
private void TestSummary_KeyUp(object sender, KeyEventArgs e) |
Event handler that toggles the IsSelected property on a TestSummary object when the Space key is released, provided the sender is a ListView with a TestSummary item selected. |
3. Invariants
- Both view classes implement
ITestSummaryListViewinterface fromDTS.Common.Interface. TestSummary_KeyUphandler only processes keyboard events when:- The
sendercan be cast to aListView - The
ListView.SelectedItemcan be cast to aTestSummarytype
- The
- When the Space key is pressed on a valid
TestSummaryitem,e.Handledis set totrue; otherwise, it is set tofalse. - The
IsSelectedproperty onTestSummaryis toggled (negated) on Space key release.
4. Dependencies
This module depends on:
| Dependency | Usage |
|---|---|
DTS.Common.Interface |
Provides ITestSummaryListView interface |
DTS.Common.Classes.Viewer.TestMetadata |
Provides TestSummary class |
DTS.Common.Interface.TestDefinition |
Imported but not visibly used in the provided source |
System.Windows |
WPF framework (FrameworkElement, UIElement) |
System.Windows.Controls |
Provides ListView control |
System.Windows.Input |
Provides KeyEventArgs, Key enum |
What depends on this module:
- Unclear from source alone — consumers of
ITestSummaryListViewimplementations are not visible in the provided files.
5. Gotchas
-
Two similarly-named classes exist: Both
TestSummaryViewandTestSummaryListViewimplement the same interface (ITestSummaryListView) within the same namespace. The relationship and distinction between these two views is unclear from the source alone. -
Namespace suppression directive: The file
TestSummaryListView.xaml.cscontains// ReSharper disable CheckNamespace, suggesting a mismatch between the file location and the declared namespace. This may indicate the file was moved or the namespace was renamed without relocating the file. -
Unused import: The namespace
DTS.Common.Interface.TestDefinitionis imported inTestSummaryListView.xaml.csbut no types from it are referenced in the visible code. This may be dead code or used in the XAML portion not shown. -
XAML partial not shown: Both classes are
partialand depend on XAML-generated code viaInitializeComponent(). The actual UI layout, bindings, and event wire-up (e.g., howTestSummary_KeyUpis connected) are defined in the corresponding.xamlfiles, which are not provided.