47 lines
2.2 KiB
Markdown
47 lines
2.2 KiB
Markdown
|
|
---
|
||
|
|
source_files:
|
||
|
|
- DataPRO/Modules/SystemSettings/QASettings/QASettingsModule.cs
|
||
|
|
generated_at: "2026-04-17T16:46:30.420978+00:00"
|
||
|
|
model: "zai-org/GLM-5-FP8"
|
||
|
|
schema_version: 1
|
||
|
|
sha256: "285e1d97f4e55a21"
|
||
|
|
---
|
||
|
|
|
||
|
|
# QASettingsModule Documentation
|
||
|
|
|
||
|
|
## 1. Purpose
|
||
|
|
|
||
|
|
This module provides QA (Quality Assurance) Settings functionality within the DataPRO application. It is a Prism module responsible for registering the QA Settings view and view-model with the Unity dependency injection container. The module also defines a custom `QASettingsImageAttribute` that supplies assembly metadata (image, name, and group) used by the main application shell to display this module as an available component on the main screen.
|
||
|
|
|
||
|
|
## 2. Public Interface
|
||
|
|
|
||
|
|
### QASettingsModule
|
||
|
|
|
||
|
|
**Signature:** `public class QASettingsModule : IModule`
|
||
|
|
|
||
|
|
A Prism module that registers QA Settings UI components with the DI container.
|
||
|
|
|
||
|
|
| Member | Signature | Description |
|
||
|
|
|--------|-----------|-------------|
|
||
|
|
| Constructor | `QASettingsModule(IUnityContainer unityContainer)` | Accepts an injected Unity container reference. |
|
||
|
|
| `OnInitialized` | `public void OnInitialized(IContainerProvider containerProvider)` | Empty implementation; no initialization logic performed. |
|
||
|
|
| `RegisterTypes` | `public void RegisterTypes(IContainerRegistry containerRegistry)` | Calls `Initialize()` to perform type registrations. |
|
||
|
|
|
||
|
|
**Internal Method:**
|
||
|
|
- `Initialize()` — Registers `IQASettingsView` to `QASettingsView` and `IQASettingsViewModel` to `QASettingsViewModel` via `_unityContainer.RegisterType<TFrom, TTo>()`.
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
### QASettingsImageAttribute
|
||
|
|
|
||
|
|
**Signature:** `public class QASettingsImageAttribute : ImageAttribute`
|
||
|
|
|
||
|
|
An assembly-level attribute providing display metadata for the module.
|
||
|
|
|
||
|
|
| Member | Return Type | Description |
|
||
|
|
|--------|-------------|-------------|
|
||
|
|
| `AssemblyRegion` | `eAssemblyRegion` | Throws `NotImplementedException`. |
|
||
|
|
| `AssemblyImage` | `BitmapImage` | Returns image loaded via `AssemblyInfo.GetImage(AssemblyNames.QASettings.ToString())`. |
|
||
|
|
| `AssemblyName` | `string` | Returns `AssemblyNames.QASettings.ToString()`. |
|
||
|
|
| `AssemblyGroup` | `string` | Returns `eAssemblyGroups.Administrative.ToString()`. |
|
||
|
|
| `GetAttribute
|