This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
---
source_files:
- DataPRO/Modules/TestSetups/Diagnostics/Properties/Settings.Designer.cs
- DataPRO/Modules/TestSetups/Diagnostics/Properties/AssemblyInfo.cs
generated_at: "2026-04-17T16:28:27.912791+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "8c0e747416c026d6"
---
# Properties
### Purpose
This module provides assembly metadata and application settings infrastructure for the Diagnostics assembly. It defines version information and COM visibility settings for a diagnostics-related component within the TestSetups subsystem.
### Public Interface
**`Diagnostics.Properties.Settings`** (internal sealed class)
- Inherits from `global::System.Configuration.ApplicationSettingsBase`
- `static Settings Default { get; }` - Returns the synchronized singleton instance of the settings class.
- No custom settings properties are defined beyond the base infrastructure.
**Assembly-level attributes:**
- `AssemblyTitle("Diagnostics")`
- `AssemblyCompany("DTS")`
- `AssemblyProduct("Diagnostics")`
- `AssemblyCopyright("Copyright © 2018")`
- `ComVisible(false)`
- `Guid("c91752c2-0792-475c-be1e-bc1aff79e56e")`
- `AssemblyVersion("1.0.0.0")`
- `AssemblyFileVersion("1.0.0.0")`
### Invariants
- The `Settings` class is a singleton accessed via `Settings.Default`.
- The settings instance is thread-safe via `Synchronized()`.
### Dependencies
- **Depends on:** `System.Configuration.ApplicationSettingsBase`, `System.Reflection`, `System.Runtime.CompilerServices`, `System.Runtime.InteropServices`.
- **Depended on by:** Unclear from source alone; presumably consumed by the main Diagnostics module.
### Gotchas
- `Settings.Designer.cs` is auto-generated. Manual changes will be lost on regeneration.
- The settings class exists but has no custom properties defined, suggesting either the module doesn't require persisted settings or they are managed elsewhere.
---

View File

@@ -0,0 +1,31 @@
---
source_files:
- DataPRO/Modules/TestSetups/Diagnostics/Resources/TranslateExtension.cs
- DataPRO/Modules/TestSetups/Diagnostics/Resources/StringResources.Designer.cs
generated_at: "2026-04-17T16:12:45.077519+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "30c046db2cd41539"
---
# Resources
### 1. Purpose
This module provides localization resources specifically for the `Diagnostics` assembly. It enables XAML-based UI components to bind to localized strings via the `TranslateExtension` markup extension, and exposes strongly-typed access to culture-specific resources (such as "Channels", "Details", "Groups", "Hardware") through the auto-generated `StringResources` class.
### 2. Public Interface
**Class: `Diagnostics.TranslateExtension`**
* `public TranslateExtension(string key)` — Constructor that accepts the resource key to be localized.
* `public override object ProvideValue(IServiceProvider serviceProvider)` — Returns the localized string corresponding to `_key`. Returns `#stringnotfound#` if the key is null or empty. Returns `#stringnotfound# {key}` if the lookup fails.
**Class: `Diagnostics.Resources.StringResources` (internal)**
* `internal static global::System.Resources.ResourceManager ResourceManager` — Returns the cached ResourceManager instance for the `Diagnostics.Resources.StringResources` resource set.
* `internal static global::System.Globalization.CultureInfo Culture` — Gets or sets the current UI culture for resource lookups.
* `internal static string Channels` — Looks up the localized string for "Channels".
* `internal static string Details` — Looks up the localized string for "Details".
* `internal static string Groups` — Looks up the localized string for "Group(s)".
* `internal static string Hardware` — Looks up the localized string for "Hardware".
### 3. Invariants
* `TranslateExtension` never returns `null`; it returns a fallback string constant `#stringnotfound#` in error cases.
* `StringResources

View File

@@ -0,0 +1,38 @@
---
source_files:
- DataPRO/Modules/TestSetups/Diagnostics/View/DiagnosticsTreeView.xaml.cs
generated_at: "2026-04-17T16:15:37.018884+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "68d90272e6ceb1e2"
---
# View
### Purpose
This module provides a WPF view component for displaying diagnostic information in a tree structure. It serves as the visual representation layer for diagnostic data within the TestSetups module, implementing the `IDiagnosticsTreeView` interface to ensure contract compliance with the rest of the system.
### Public Interface
**`DiagnosticsTreeView` (class)**
- Signature: `public partial class DiagnosticsTreeView : IDiagnosticsTreeView`
- Description: A WPF UserControl representing a diagnostic tree view. The class is minimal, serving primarily as a code-behind for the associated XAML file. The constructor calls `InitializeComponent()` to load the XAML-defined UI.
### Invariants
- The view must always implement `IDiagnosticsTreeView` as defined in `DTS.Common.Interface.TestSetups.Diagnostics`.
- The associated XAML file (DiagnosticsTreeView.xaml) must exist and be properly formatted, as `InitializeComponent()` relies on it.
### Dependencies
- **Depends on**:
- `System.Windows` (WPF framework)
- `System.Windows.Controls`
- `System.Windows.Data`
- `System.Windows.Media`
- `DTS.Common.Interface.TestSetups.Diagnostics.IDiagnosticsTreeView`
- **Depended on by**: Unknown from source alone (likely a parent Diagnostics module or ViewModel).
### Gotchas
- The file uses `// ReSharper disable CheckNamespace` which suppresses namespace warnings. The namespace `Diagnostics` may not match the folder structure convention, which could cause confusion when locating the file.
- The class has no additional logic beyond initialization; all behavior is presumably defined in the XAML or bound ViewModel.
---

View File

@@ -0,0 +1,38 @@
---
source_files:
- DataPRO/Modules/TestSetups/Diagnostics/ViewModel/DiagnosticsViewModel.cs
generated_at: "2026-04-17T16:47:10.374442+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "e1ab887d53b828fa"
---
# DiagnosticsViewModel Documentation
## 1. Purpose
`DiagnosticsViewModel` is a Prism-based ViewModel for the Diagnostics module within the TestSetups subsystem. It serves as the presentation logic layer for diagnostic UI, managing view binding, user notifications, and event-driven communication with other application components. The class is designed as a shared singleton (MEF `CreationPolicy.Shared`) and acts as a bridge between the `IDiagnosticsTreeView` and the application's event infrastructure.
---
## 2. Public Interface
### Constructor
```csharp
public DiagnosticsViewModel(
IDiagnosticsTreeView view,
IRegionManager regionManager,
IEventAggregator eventAggregator,
IUnityContainer unityContainer)
```
Initializes the ViewModel, sets the `TreeView`'s `DataContext` to itself, creates interaction requests, and subscribes to `RaiseNotification` and `BusyIndicatorChangeNotification` events.
---
### Properties
| Property | Type | Access | Description |
|----------|------|--------|-------------|
| `View` | `IDiagnosticsTreeView` | get/set | DiagnosticsTreeView reference (appears separate from `TreeView`). |
| `TreeView` | `IDiagnosticsTreeView` | get/set | The diagnostics tree view; `DataContext`