init
This commit is contained in:
78
docs/ai/Common/DTS.Common/Events/DTS.Viewer/Reports.md
Normal file
78
docs/ai/Common/DTS.Common/Events/DTS.Viewer/Reports.md
Normal file
@@ -0,0 +1,78 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common/Events/DTS.Viewer/Reports/SaveReportToCSVRequestedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/Reports/SaveReportToPDFRequestedEvent.cs
|
||||
generated_at: "2026-04-17T16:38:04.393080+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "0eaf9841175516dd"
|
||||
---
|
||||
|
||||
# Documentation: Report Export Events
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
This module defines two Prism event aggregation types for requesting report exports in the DTS Viewer application. `SaveReportToCSVRequestedEvent` and `SaveReportToPDFRequestedEvent` enable loosely-coupled communication between view models and report generation services, allowing components to request CSV or PDF exports without direct dependencies on each other. Both events carry the target directory path and a reference to the requesting parent view model.
|
||||
|
||||
---
|
||||
|
||||
## 2. Public Interface
|
||||
|
||||
### `SaveReportToCSVRequestedEvent`
|
||||
**Signature:** `public class SaveReportToCSVRequestedEvent : PubSubEvent<SaveReportToCSVRequestedEventArgs>`
|
||||
|
||||
An event type for publishing and subscribing to CSV export requests. Inherits from Prism's `PubSubEvent<T>` and uses `SaveReportToCSVRequestedEventArgs` as its payload type.
|
||||
|
||||
---
|
||||
|
||||
### `SaveReportToCSVRequestedEventArgs`
|
||||
**Signature:** `public class SaveReportToCSVRequestedEventArgs`
|
||||
|
||||
Payload class carrying data for CSV export requests.
|
||||
|
||||
| Property | Type | Access |
|
||||
|----------|------|--------|
|
||||
| `Directory` | `string` | get; set; |
|
||||
| `ParentVM` | `IBaseViewModel` | get; set; |
|
||||
|
||||
---
|
||||
|
||||
### `SaveReportToPDFRequestedEvent`
|
||||
**Signature:** `public class SaveReportToPDFRequestedEvent : PubSubEvent<SaveReportToPDFRequestedEventArgs>`
|
||||
|
||||
An event type for publishing and subscribing to PDF export requests. Inherits from Prism's `PubSubEvent<T>` and uses `SaveReportToPDFRequestedEventArgs` as its payload type.
|
||||
|
||||
---
|
||||
|
||||
### `SaveReportToPDFRequestedEventArgs`
|
||||
**Signature:** `public class SaveReportToPDFRequestedEventArgs`
|
||||
|
||||
Payload class carrying data for PDF export requests.
|
||||
|
||||
| Property | Type | Access |
|
||||
|----------|------|--------|
|
||||
| `Directory` | `string` | get; set; |
|
||||
| `ParentVM` | `IBaseViewModel` | get; set; |
|
||||
|
||||
---
|
||||
|
||||
## 3. Invariants
|
||||
|
||||
- Both event args classes expose identical property structures (`Directory` and `ParentVM`).
|
||||
- `Directory` is intended to represent a file system path for the export destination.
|
||||
- `ParentVM` must implement `IBaseViewModel` interface from `DTS.Common.Base`.
|
||||
- Properties are mutable (public setters); no constructor-based initialization is enforced.
|
||||
- No null validation or path validation is performed within these classes.
|
||||
|
||||
---
|
||||
|
||||
## 4. Dependencies
|
||||
|
||||
**This module depends on:**
|
||||
- `Prism.Events` — Provides `PubSubEvent<T>` base class for event aggregation
|
||||
- `DTS.Common.Base` — Provides `IBaseViewModel` interface
|
||||
|
||||
**Consumers (inferred):**
|
||||
- Any module publishing or subscribing to report export requests via Prism's `IEventAggregator`
|
||||
- Report generation services that handle these events
|
||||
- View models that initiate export operations
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common/Events/DTS.Viewer/Reports/PowerSpectralDensity/PSDReportSettingsChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/Reports/PowerSpectralDensity/PSDReportGRMSValuesUpdatedEvent.cs
|
||||
generated_at: "2026-04-17T16:26:51.849481+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "59c47482ba063f01"
|
||||
---
|
||||
|
||||
# PowerSpectralDensity
|
||||
|
||||
### Purpose
|
||||
This module defines Prism event types for broadcasting Power Spectral Density (PSD) report-related changes within the DTS Viewer application. It enables loose coupling between components that produce PSD report updates (settings changes, GRMS value recalculations) and consumers that need to react to those updates, using the event aggregation pattern.
|
||||
|
||||
### Public Interface
|
||||
|
||||
**`PSDReportSettingsChangedEvent`** (class, inherits `PubSubEvent<PSDReportSettingsChangedEventArg>`)
|
||||
- Event type for publishing/subscribing to PSD report settings changes.
|
||||
- Payload type: `PSDReportSettingsChangedEventArg`
|
||||
|
||||
**`PSDReportSettingsChangedEventArg`** (class)
|
||||
- `IPSDReportSettingsModel Model { get; set; }` — The updated PSD report settings model.
|
||||
- `IBaseViewModel ParentVM { get; set; }` — Reference to the parent view model originating the change.
|
||||
|
||||
**`PSDReportGRMSValuesUpdatedEvent`** (class, inherits `PubSubEvent<PSDReportGRMSValuesUpdatedEventArg>`)
|
||||
- Event type for publishing/subscribing to GRMS (Root Mean Square) value updates in PSD reports.
|
||||
- Payload type: `PSDReportGRMSValuesUpdatedEventArg`
|
||||
|
||||
**`PSDReportGRMSValuesUpdatedEventArg`** (class)
|
||||
- `IChannelGRMSSummary[] Values { get; set; }` — Array of channel GRMS summary values.
|
||||
- `IBaseViewModel ParentVM { get; set; }` — Reference to the parent view model associated with the update.
|
||||
|
||||
### Invariants
|
||||
- Both event types inherit from `PubSubEvent<T>` from Prism, requiring the event aggregator pattern for publication/subscription.
|
||||
- The `ParentVM` property in both event args is intended to identify the source context of the event (nullability is not enforced at compile time).
|
||||
|
||||
### Dependencies
|
||||
- **Depends on**: `DTS.Common.Base` (for `IBaseViewModel`), `DTS.Common.Interface` (for `IPSDReportSettingsModel`, `IChannelGRMSSummary`), `Prism.Events` (for `PubSubEvent<T>`).
|
||||
- **Depended on by**: Unclear from source alone—likely PSD report view models, view components, or services that subscribe to or publish these events.
|
||||
|
||||
### Gotchas
|
||||
- The `ParentVM` property could be `null` if not set by the publisher; subscribers should handle this possibility.
|
||||
- The event args classes use mutable auto-properties; event payloads can be modified after publication if references are retained.
|
||||
|
||||
---
|
||||
@@ -0,0 +1,83 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common/Events/DTS.Viewer/TestModification/RefreshTestRequestEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/TestModification/ShowT0CursorEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/TestModification/TestModificationChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/TestModification/SetUseZeroForUnfilteredEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/TestModification/TestModificationEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/TestModification/ShiftT0Event.cs
|
||||
generated_at: "2026-04-17T16:03:15.426783+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "f69e333ecbb396d6"
|
||||
---
|
||||
|
||||
# TestModification
|
||||
|
||||
### Purpose
|
||||
This module defines a set of Prism events for coordinating test modification operations within the DTS Viewer system. It provides a loosely-coupled messaging mechanism for components to communicate changes to test data, T0 cursor state, and filtering behavior without direct references. All events inherit from `CompositePresentationEvent<T>` from the legacy Microsoft.Practices.Prism library.
|
||||
|
||||
### Public Interface
|
||||
|
||||
**RefreshTestRequestEvent**
|
||||
- Signature: `public class RefreshTestRequestEvent : CompositePresentationEvent<string>`
|
||||
- Payload: `string` (test ID)
|
||||
- Behavior: Published to request a refresh of a specific test identified by its ID.
|
||||
|
||||
**ShowT0CursorEvent**
|
||||
- Signature: `public class ShowT0CursorEvent : CompositePresentationEvent<bool>`
|
||||
- Payload: `bool` (true to show, false to hide)
|
||||
- Behavior: Controls visibility of the T0 cursor in the viewer.
|
||||
|
||||
**TestModificationChangedEvent**
|
||||
- Signature: `public class TestModificationChangedEvent : CompositePresentationEvent<ITestModificationModel>`
|
||||
- Payload: `ITestModificationModel`
|
||||
- Behavior: Notifies subscribers when the data folder or test modification model has changed.
|
||||
|
||||
**SetUseZeroForUnfilteredEvent**
|
||||
- Signature: `public class SetUseZeroForUnfilteredEvent : CompositePresentationEvent<bool>`
|
||||
- Payload: `bool`
|
||||
- Behavior: Controls whether 0 or P is used in the isocode filter field when modifying an isocode from a filter.
|
||||
|
||||
**TestModificationEvent**
|
||||
- Signature: `public class TestModificationEvent : CompositePresentationEvent<TestModificationArgs>`
|
||||
- Payload: `TestModificationArgs`
|
||||
- Behavior: Published whenever a test is modified by the viewer. Used by DataPro to regenerate an ROI when an event is modified.
|
||||
|
||||
**TestModificationArgs**
|
||||
- Properties:
|
||||
- `string DataSetDirectory { get; private set; }` - Path to the DTS file
|
||||
- `string TestId { get; private set; }` - Identifier of the modified test
|
||||
- Constructor: `TestModificationArgs(string dtsFilePath, string testId)`
|
||||
|
||||
**ShiftT0Event**
|
||||
- Signature: `public class ShiftT0Event : CompositePresentationEvent<ShiftT0EventArguments>`
|
||||
- Payload: `ShiftT0EventArguments`
|
||||
- Behavior: Published to shift the T0 marker position.
|
||||
|
||||
**ShiftT0EventArguments**
|
||||
- Properties:
|
||||
- `double T0Time { get; }` - The T0 time value
|
||||
- `bool IsInitialization { get; }` - Whether this shift is part of initialization
|
||||
- `int T0Steps { get; }` - Steps/samples from T0 to shift
|
||||
- `bool IsKeyPress { get; }` - Whether shift was caused by arrow key press
|
||||
- Constructors:
|
||||
- `ShiftT0EventArguments(double t0, bool isInitialization)` - Sets T0Time, defaults T0Steps=0, IsKeyPress=false
|
||||
- `ShiftT0EventArguments(int steps, bool isInitialization, bool isKeyPress)` - Sets T0Steps, defaults T0Time=0D
|
||||
|
||||
### Invariants
|
||||
- `TestModificationArgs.DataSetDirectory` and `TestId` are set only at construction and cannot be modified.
|
||||
- `ShiftT0EventArguments` properties are immutable after construction.
|
||||
- When using the time-based constructor for `ShiftT0EventArguments`, `T0Steps` is always 0 and `IsKeyPress` is always false.
|
||||
- When using the steps-based constructor for `ShiftT0EventArguments`, `T0Time` is always 0D.
|
||||
|
||||
### Dependencies
|
||||
- **Depends on**: `Microsoft.Practices.Prism.Events` (legacy Prism event aggregation), `DTS.Common.Interface` (for `ITestModificationModel`)
|
||||
- **Depended on by**: Unclear from source alone; likely consumed by viewer components, DataPro, and any module that modifies test data.
|
||||
|
||||
### Gotchas
|
||||
- The XML comment for `TestModificationChangedEvent` states "The Data Folder changed event" which appears inconsistent with the class name and payload type (`ITestModificationModel`).
|
||||
- Several files use `// ReSharper disable CheckNamespace` suggesting namespace inconsistencies that were suppressed rather than fixed.
|
||||
- The `ShiftT0EventArguments` class has two mutually exclusive constructors; the time-based and steps-based approaches cannot be combined in a single instance.
|
||||
|
||||
---
|
||||
@@ -0,0 +1,62 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerChartOptions/ResetZoomChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerChartOptions/CursorShowChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerChartOptions/CursorsClearChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerChartOptions/CursorShowMinMaxChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerChartOptions/CursorsAlailableChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerChartOptions/SaveToPDFRequestedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerChartOptions/ChartAxisChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerChartOptions/ChartOptionsChangedEvent.cs
|
||||
generated_at: "2026-04-17T16:02:47.398492+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "795f6e3411213c28"
|
||||
---
|
||||
|
||||
# ViewerChartOptions
|
||||
|
||||
### Purpose
|
||||
This module defines Prism-based event classes for chart viewer operations, enabling loosely-coupled communication between components in the viewer subsystem. Events cover zoom reset, cursor display/clearing, PDF export, and axis/options changes. Uses the older `Microsoft.Practices.Prism.Events` namespace (Prism 4.x or earlier).
|
||||
|
||||
### Public Interface
|
||||
|
||||
**ResetZoomChangedEvent**
|
||||
- Inherits `CompositePresentationEvent<bool>` - Event payload is a boolean.
|
||||
|
||||
**CursorShowChangedEvent**
|
||||
- Inherits `CompositePresentationEvent<bool>` - Event payload is a boolean.
|
||||
|
||||
**CursorsClearChangedEvent**
|
||||
- Inherits `CompositePresentationEvent<bool>` - Event payload is a boolean.
|
||||
|
||||
**CursorShowMinMaxChangedEvent**
|
||||
- Inherits `CompositePresentationEvent<bool>` - Event payload is a boolean.
|
||||
|
||||
**CursorsAlailableChangedEvent**
|
||||
- Inherits `CompositePresentationEvent<bool>` - Event payload is a boolean. Note: typo in class name ("Alailable" vs "Available").
|
||||
|
||||
**SaveToPDFRequestedEvent**
|
||||
- Inherits `CompositePresentationEvent<string>` - Event payload is a string (likely file path).
|
||||
|
||||
**ChartAxisChangedEvent**
|
||||
- Inherits `CompositePresentationEvent<ChartAxisChangedEventArg>` - Event payload is `ChartAxisChangedEventArg`.
|
||||
|
||||
**ChartAxisChangedEventArg**
|
||||
- `IBaseViewModel ParentVM { get; set; }` - Parent view model reference.
|
||||
- `string Axis { get; set; }` - Axis identifier.
|
||||
- `double MinValue { get; set; }` - Minimum axis value.
|
||||
- `double MaxValue { get; set; }` - Maximum axis value.
|
||||
|
||||
**ChartOptionsChangedEvent**
|
||||
- Inherits `CompositePresentationEvent<ChartOptionsChangedEventArg>` - Event payload is `ChartOptionsChangedEventArg`.
|
||||
|
||||
**ChartOptionsChangedEventArg**
|
||||
- `IBaseViewModel ParentVM { get; set; }` - Parent view model reference.
|
||||
- `IChartOptionsModel Model { get; set; }` - Chart options model.
|
||||
- `string ChartType { get; set; }` - Chart type identifier.
|
||||
|
||||
### Invariants
|
||||
- All events inherit from `CompositePresentationEvent<T>` and are empty classes (no additional members).
|
||||
- Event args classes (`ChartAxisChangedEventArg`, `ChartOptionsChangedEventArg`) are mutable POCOs with public getters and setters.
|
||||
- The `
|
||||
57
docs/ai/Common/DTS.Common/Events/DTS.Viewer/ViewerFilter.md
Normal file
57
docs/ai/Common/DTS.Common/Events/DTS.Viewer/ViewerFilter.md
Normal file
@@ -0,0 +1,57 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerFilter/FilterParameterChangedEvent.cs
|
||||
generated_at: "2026-04-17T16:43:24.528045+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "ccf977f1060969f3"
|
||||
---
|
||||
|
||||
# Documentation: FilterParameterChangedEvent
|
||||
|
||||
## Purpose
|
||||
|
||||
This module provides a Prism Event Aggregator event definition for broadcasting filter parameter changes across the application. It enables loosely coupled communication between view models when filter criteria are modified, allowing components to subscribe to and react to filter changes without requiring direct references to the originating component.
|
||||
|
||||
---
|
||||
|
||||
## Public Interface
|
||||
|
||||
### `FilterParameterArgs`
|
||||
|
||||
Event payload class containing the data transmitted when a filter parameter changes.
|
||||
|
||||
| Property | Type | Description |
|
||||
|----------|------|-------------|
|
||||
| `Requester` | `IBaseViewModel` | The view model that initiated the filter change request |
|
||||
| `Param` | `string` | The filter parameter value being communicated |
|
||||
|
||||
### `FilterParameterChangedEvent`
|
||||
|
||||
Event class for pub/sub messaging via Prism's Event Aggregator.
|
||||
|
||||
- **Inherits from:** `PubSubEvent<FilterParameterArgs>`
|
||||
- **Usage:** Subscribe to receive filter change notifications; publish to broadcast filter changes.
|
||||
|
||||
---
|
||||
|
||||
## Invariants
|
||||
|
||||
- `FilterParameterArgs` is a mutable POCO with no constructor enforcement—callers must explicitly set `Requester` and `Param` properties.
|
||||
- Both properties on `FilterParameterArgs` may be `null` (no null-checking or validation is enforced at the class level).
|
||||
- The event follows Prism's `PubSubEvent<T>` contract, which manages its own thread-safety and subscription lifecycle guarantees.
|
||||
|
||||
---
|
||||
|
||||
## Dependencies
|
||||
|
||||
**This module depends on:**
|
||||
- `DTS.Common.Base` — provides `IBaseViewModel` interface
|
||||
- `Prism.Events` — provides `PubSubEvent<T>` base class for event aggregation
|
||||
|
||||
**Consumers (inferred):**
|
||||
- Any view model or component that publishes or subscribes to filter parameter changes via Prism's `IEventAggregator`.
|
||||
|
||||
---
|
||||
|
||||
## Gotchas
|
||||
@@ -0,0 +1,53 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerSettings/CalibrationBehaviorSettableInViewerChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerSettings/ViewerSettingsVisibilityChangedEvent.cs
|
||||
generated_at: "2026-04-17T16:37:52.583907+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "4781a254be509f2c"
|
||||
---
|
||||
|
||||
# Documentation: Viewer Settings Events
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
This module defines two Prism event classes used for decoupled communication within the DTS Viewer subsystem. These events facilitate pub/sub messaging related to viewer settings state changes—specifically, calibration behavior configuration and visibility toggling of the viewer settings UI. Both events leverage Prism's `PubSubEvent<T>` base class to enable loosely-coupled component communication.
|
||||
|
||||
---
|
||||
|
||||
## 2. Public Interface
|
||||
|
||||
### `CalibrationBehaviorSettableInViewerChangedEvent`
|
||||
- **Signature:** `public class CalibrationBehaviorSettableInViewerChangedEvent : PubSubEvent<bool>`
|
||||
- **Behavior:** A typed event that carries a `bool` payload indicating whether calibration behavior can be set in the viewer. Publishers broadcast the boolean state; subscribers receive it via the Prism event aggregation mechanism.
|
||||
|
||||
### `ViewerSettingsVisibilityChangedEvent`
|
||||
- **Signature:** `public class ViewerSettingsVisibilityChangedEvent : PubSubEvent<Visibility>`
|
||||
- **Behavior:** A typed event that carries a `System.Windows.Visibility` payload. Publishers broadcast visibility state changes (e.g., `Visible`, `Hidden`, `Collapsed`); subscribers receive the new visibility value.
|
||||
|
||||
---
|
||||
|
||||
## 3. Invariants
|
||||
|
||||
- **Payload types are fixed:** `CalibrationBehaviorSettableInViewerChangedEvent` always carries `bool`; `ViewerSettingsVisibilityChangedEvent` always carries `Visibility`.
|
||||
- **Inheritance contract:** Both classes inherit from `PubSubEvent<T>` and do not override or extend any members, relying entirely on the Prism base implementation.
|
||||
- **Namespace consistency:** Both types reside in `DTS.Common.Events` regardless of their file location within `DTS.Viewer/ViewerSettings/` subdirectories.
|
||||
|
||||
---
|
||||
|
||||
## 4. Dependencies
|
||||
|
||||
### This module depends on:
|
||||
- `Prism.Events` — Provides `PubSubEvent<T>` base class for event aggregation
|
||||
- `System.Windows` — Provides `Visibility` enum (used by `ViewerSettingsVisibilityChangedEvent` only)
|
||||
|
||||
### What depends on this module:
|
||||
- **Unclear from source alone.** Consumers would be any component that publishes or subscribes to these events via Prism's `IEventAggregator`, but such usages are not present in the provided files.
|
||||
|
||||
---
|
||||
|
||||
## 5. Gotchas
|
||||
|
||||
- **Namespace/file path mismatch:** The files are located in `Common/DTS.Common/Events/DTS.Viewer/ViewerSettings/`, but the declared namespace is `DTS.Common.Events`. The `// ReSharper disable CheckNamespace` directive suppresses IDE warnings about this discrepancy. This may indicate a deliberate organizational choice or historical refactoring artifact.
|
||||
- **No explicit constructors or members:** Both classes are empty declarations inheriting from `PubSubEvent<T>`. This is idiomatic for Prism events but may confuse developers expecting explicit publish/subscribe methods on the class itself—those are accessed via `IEventAggregator.GetEvent<T>()`.
|
||||
@@ -0,0 +1,56 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/ChannelSelectionCountNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/ChannelsModificationNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/ChannelSelectionChangeNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/GraphChannelReadCalcProgressChangedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/GraphChannelsReadCompletedNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/DataFileSelectedEvent.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/TestLoadedCountNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/GraphLoadedCountNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/TestSummaryCountNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/GraphClearNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/GraphSelectedEventCountNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/GraphSelectedChannelCountNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/GraphSelectedChannelsNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/GraphSelectedEventsNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/ChannelsModificationLineFitNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/TestSummaryChangeNotification.cs
|
||||
- Common/DTS.Common/Events/DTS.Viewer/ViewerTestSummary/DataFolderChangedEvent.cs
|
||||
generated_at: "2026-04-17T15:28:05.385787+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "9d06f7a32bf91d25"
|
||||
---
|
||||
|
||||
# Documentation: DTS.Common.Events (ViewerTestSummary)
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
This module defines a collection of Prism.Events-based pub/sub event types for the DTS Viewer's Test Summary functionality. It facilitates loosely-coupled communication between UI components regarding test data selection, graph state, channel modifications, and data file/folder operations. The events enable decoupled view models to broadcast and react to state changes without direct references, supporting the application's MVVM architecture.
|
||||
|
||||
---
|
||||
|
||||
## 2. Public Interface
|
||||
|
||||
### Events (all inherit from `PubSubEvent<T>`)
|
||||
|
||||
| Event Name | Payload Type | Description |
|
||||
|------------|--------------|-------------|
|
||||
| `ChannelSelectionCountNotification` | `int` | Broadcasts the count of selected channels. |
|
||||
| `ChannelsModificationNotification` | `List<ITestChannel>` | Notifies when the collection of graph channels has been modified. |
|
||||
| `ChannelSelectionChangeNotification` | `List<ITestChannel>` | Notifies when the selected test summary list changes. |
|
||||
| `GraphChannelReadCalcProgressChangedEvent` | `GraphChannelReadCalcProgressChangedEventArgs` | Reports progress during graph channel read/calculation operations. |
|
||||
| `GraphChannelsReadCompletedNotification` | `GraphChannelsReadCompletedNotificationArgs` | Signals completion of graph channel reading. |
|
||||
| `DataFileSelectedEvent` | `DataFileSelectionArg` | Notifies when a data file is selected without triggering full folder change subscriptions. |
|
||||
| `TestLoadedCountNotification` | `TestLoadedCountNotificationArg` | Broadcasts the count of loaded tests. |
|
||||
| `GraphLoadedCountNotification` | `GraphLoadedCountNotificationArg` | Broadcasts the count of loaded graphs. |
|
||||
| `TestSummaryCountNotification` | `TestSummaryCountNotificationArg` | Broadcasts the count of test summaries. |
|
||||
| `GraphClearNotification` | `GraphClearNotificationArg` | Notifies when graphs should be cleared. |
|
||||
| `GraphSelectedEventCountNotification` | `GraphSelectedEventCountNotificationArg` | Broadcasts the count of selected events in a graph. |
|
||||
| `GraphSelectedChannelCountNotification` | `GraphSelectedChannelCountNotificationArg` | Broadcasts the count of selected channels in a graph. |
|
||||
| `GraphSelectedChannelsNotification` | `GraphSelectedChannelsNotificationArg` | Notifies of the currently selected channels in a graph. |
|
||||
| `GraphSelectedEventsNotification` | `GraphSelectedEventsNotificationArg` | Notifies of the currently selected events in a graph. |
|
||||
| `ChannelsModificationLineFitNotification` | `LineFitArgs` | Notifies of line fit modifications with index range. |
|
||||
| `TestSummaryChangeNotification` | `TestSummaryChangeNotificationArg` | Notifies when the test summary list changes. |
|
||||
| `DataFolderChangedEvent` | `DataFolderSelectionArg` | Notifies when the data folder
|
||||
Reference in New Issue
Block a user