init
This commit is contained in:
27
docs/ai/DataPRO/Modules/TestSetups/TestSetupsList/Model.md
Normal file
27
docs/ai/DataPRO/Modules/TestSetups/TestSetupsList/Model.md
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/TestSetups/TestSetupsList/Model/TestSetupComparer.cs
|
||||
generated_at: "2026-04-17T16:15:37.019693+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "6eb89071d4a03a7e"
|
||||
---
|
||||
|
||||
# Model
|
||||
|
||||
### Purpose
|
||||
This module provides comparison logic for sorting `ITestSetup` objects in a list. It exists to enable flexible, multi-field sorting of test setup records with support for both ascending and descending order, abstracting the comparison rules from the view and ViewModel layers.
|
||||
|
||||
### Public Interface
|
||||
|
||||
**`TestSetupComparer` (class)**
|
||||
- Signature: `public class TestSetupComparer : IComparer<ITestSetup>`
|
||||
- Description: A comparer class that defines sorting behavior for `ITestSetup` instances based on configurable field and direction.
|
||||
|
||||
**Properties:**
|
||||
- `SortField` (`TestSetupFields`): The field to sort by. Defaults to `TestSetupFields.Name`.
|
||||
- `SortAscending` (`bool`): The sort direction. Defaults to `true`. When `false`, the comparison operands are swapped.
|
||||
|
||||
**`Compare(ITestSetup left, ITestSetup right)`**
|
||||
- Signature: `public int Compare(ITestSetup left, ITestSetup right)`
|
||||
- Description
|
||||
@@ -0,0 +1,29 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/TestSetups/TestSetupsList/Properties/Settings.Designer.cs
|
||||
- DataPRO/Modules/TestSetups/TestSetupsList/Properties/AssemblyInfo.cs
|
||||
generated_at: "2026-04-17T16:28:27.914333+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "cc6e546e99c9b2c8"
|
||||
---
|
||||
|
||||
# Properties
|
||||
|
||||
### Purpose
|
||||
This module provides assembly metadata and application settings infrastructure for the TestSetupsList assembly. It defines version information and COM visibility settings for a component that appears to manage lists of test setups.
|
||||
|
||||
### Public Interface
|
||||
|
||||
**`TestSetupsList.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("TestSetupsList")`
|
||||
- `AssemblyCompany("DTS")`
|
||||
- `AssemblyProduct("TestSetupsList")`
|
||||
- `AssemblyCopyright("Copyright © 2017")`
|
||||
- `ComVisible(false)`
|
||||
- `Guid("9aa6d22f-5df9-4702-a16a-2c7f38b466f8
|
||||
@@ -0,0 +1,31 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/TestSetups/TestSetupsList/Resources/TranslateExtension.cs
|
||||
- DataPRO/Modules/TestSetups/TestSetupsList/Resources/StringResources.Designer.cs
|
||||
generated_at: "2026-04-17T16:12:45.079196+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "b088df474836561f"
|
||||
---
|
||||
|
||||
# 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
|
||||
38
docs/ai/DataPRO/Modules/TestSetups/TestSetupsList/View.md
Normal file
38
docs/ai/DataPRO/Modules/TestSetups/TestSetupsList/View.md
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/TestSetups/TestSetupsList/View/TestSetupsListView.xaml.cs
|
||||
generated_at: "2026-04-17T16:15:37.020140+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "5d810c4863232d2e"
|
||||
---
|
||||
|
||||
# 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.
|
||||
|
||||
---
|
||||
@@ -0,0 +1,58 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/TestSetups/TestSetupsList/ViewModel/TestSetupsListViewModel.cs
|
||||
generated_at: "2026-04-17T16:00:45.456136+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "790589951db7c0bc"
|
||||
---
|
||||
|
||||
# TestSetupsListViewModel Documentation
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
`TestSetupsListViewModel` is the presentation logic component for the Test Setups List module in a WPF/Prism-based application. It manages the display, filtering, sorting, and selection of `ITestSetup` objects, serving as the intermediary between the view (`ITestSetupsListView`) and the underlying data. The class implements the MVVM pattern with `INotifyPropertyChanged` support and integrates with Prism's event aggregation and region management systems for decoupled communication across the application.
|
||||
|
||||
---
|
||||
|
||||
## 2. Public Interface
|
||||
|
||||
### Constructor
|
||||
```csharp
|
||||
public TestSetupsListViewModel(ITestSetupsListView view, IRegionManager regionManager, IEventAggregator eventAggregator, IUnityContainer unityContainer)
|
||||
```
|
||||
Initializes the view model, sets the view's DataContext, creates interaction requests, and subscribes to `RaiseNotification` and `BusyIndicatorChangeNotification` events.
|
||||
|
||||
### Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
|----------|------|-------------|
|
||||
| `View` | `ITestSetupsListView` | The associated view instance. |
|
||||
| `NotificationRequest` | `InteractionRequest<Notification>` | Used to raise notification dialogs. |
|
||||
| `ConfirmationRequest` | `InteractionRequest<Confirmation>` | Used to raise confirmation dialogs. |
|
||||
| `SelectedTestSetupIndex` | `int` | Index of the currently selected test setup. Default: `-1`. |
|
||||
| `SelectedTestSetupItems` | `BulkObservableCollection<ITestSetup>` | Collection of selected test setup items. Fires `TestSetupsListTestSetupSelectedEvent` on change. |
|
||||
| `TestSetups` | `ITestSetup[]` | The filtered/sorted array of test setups displayed to the user. |
|
||||
| `IsDirty` | `bool` | Indicates whether there are unsaved changes. Has private setter only. |
|
||||
| `IsBusy` | `bool` | Controls busy indicator state. Raises `PropertyChanged` on change. |
|
||||
| `IsMenuIncluded` | `bool` | Indicates whether menu is included. Raises `PropertyChanged` on change. |
|
||||
| `IsNavigationIncluded` | `bool` | Indicates whether navigation is included. Raises `PropertyChanged` on change. |
|
||||
| `ListViewId` | `string` | Returns constant string `"TestSetupsListView"`. |
|
||||
|
||||
### Events
|
||||
```csharp
|
||||
public event PropertyChangedEventHandler PropertyChanged
|
||||
```
|
||||
Standard `INotifyPropertyChanged` event for data binding.
|
||||
|
||||
### Methods
|
||||
|
||||
```csharp
|
||||
public void OnPropertyChanged(string propertyName)
|
||||
```
|
||||
Invokes the `PropertyChanged` event for the specified property.
|
||||
|
||||
```csharp
|
||||
public void ClearAllFilters()
|
||||
```
|
||||
Clears all field-specific search terms from `_
|
||||
Reference in New Issue
Block a user