Files

36 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
---
source_files:
- DTS Viewer/DTS.Viewer.Reports/DTS.Viewer.PSDReportResults/ViewModel/PSDReportResultsViewModel.cs
generated_at: "2026-04-17T16:45:23.897639+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "c04e7218899f6152"
---
# PSDReportResultsViewModel Documentation
## 1. Purpose
`PSDReportResultsViewModel` is a Prism-based ViewModel responsible for displaying PSD (Power Spectral Density) report results, specifically GRMS (G-RMS) summary data for test channels. It serves as a subscriber to data update events from parent view models and provides user interaction capabilities for exporting reports to PDF and CSV formats. This component bridges the gap between data calculation logic and the results presentation layer within the DTS Viewer reporting subsystem.
---
## 2. Public Interface
### Properties
| Name | Type | Description |
|------|------|-------------|
| `View` | `IBaseView` | Gets or sets the associated view instance. Assigned in constructor and has its `DataContext` set to `this`. |
| `Parent` | `IBaseViewModel` | Gets or sets the parent ViewModel. Passed via `Initialize(object parameter)` and used to filter event responses. |
| `Results` | `ObservableCollection<IChannelGRMSSummary>` | Observable collection of GRMS summary results displayed in the view. Cleared and repopulated on `PSDReportGRMSValuesUpdatedEvent`. |
| `NotificationRequest` | `InteractionRequest<Notification>` | Interaction request for displaying notifications to the user. |
| `ConfirmationRequest` | `InteractionRequest<Confirmation>` | Interaction request for displaying confirmation dialogs to the user. Declared with `new` keyword. |
| `ExportToPDFCommand` | `DelegateCommand` | Lazily-initialized command that publishes `SaveReportToPDFRequestedEvent` when executed. |
| `ExportToCSVCommand` | `DelegateCommand` | Lazily-initialized command that publishes `SaveReportToCSVRequestedEvent` when executed. |
### Methods
| Name | Signature | Description |
|------|-----------|-------------|
| `Initialize` | `void Initialize(object parameter