init
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/SystemSettings/RealtimeSettings/Properties/AssemblyInfo.cs
|
||||
generated_at: "2026-04-17T16:30:37.201000+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "05a20efb429f05b5"
|
||||
---
|
||||
|
||||
# Properties
|
||||
|
||||
### Purpose
|
||||
This module contains standard .NET assembly metadata for the `RealtimeSettings` component. It provides versioning, culture, and COM visibility information for the compiled assembly. It does not contain executable logic.
|
||||
|
||||
### Public Interface
|
||||
* `AssemblyTitle("RealtimeSettings")`: Specifies the assembly title.
|
||||
* `AssemblyVersion("1.0.0.0")`: Specifies the assembly version.
|
||||
* `AssemblyFileVersion("1.0.0.0")`: Specifies the file version.
|
||||
* `ComVisible(false)`: Makes types in this assembly not visible to COM components.
|
||||
* `Guid("7446722e-490d-4f6a-beaf-907947e576d5")`: Specifies the GUID for the type library ID if exposed to COM.
|
||||
|
||||
### Invariants
|
||||
* Standard .NET assembly attributes are applied at the assembly level.
|
||||
|
||||
### Dependencies
|
||||
* **Depends on:** `System.Reflection`, `System.Runtime.CompilerServices`, `System.Runtime.InteropServices`.
|
||||
|
||||
### Gotchas
|
||||
None identified from source alone.
|
||||
@@ -0,0 +1,56 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/SystemSettings/RealtimeSettings/Resources/TranslateExtension.cs
|
||||
- DataPRO/Modules/SystemSettings/RealtimeSettings/Resources/StringResources.Designer.cs
|
||||
generated_at: "2026-04-17T15:57:56.905149+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "68b065923840220c"
|
||||
---
|
||||
|
||||
# Documentation: RealtimeSettings.Resources
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
This module provides localization infrastructure for the RealtimeSettings feature within the DataPRO SystemSettings module. It consists of a XAML markup extension (`TranslateExtension`) for declarative string lookup in UI markup, and a strongly-typed resource class (`StringResources`) that wraps a `.resx` resource file containing user-facing strings for realtime data acquisition settings such as sample rates, polling delays, and meter mode configuration.
|
||||
|
||||
---
|
||||
|
||||
## 2. Public Interface
|
||||
|
||||
### `TranslateExtension` (class)
|
||||
**Namespace:** `RealtimeSettings.Resources`
|
||||
**Inheritance:** `System.Windows.Markup.MarkupExtension`
|
||||
|
||||
A XAML markup extension that enables inline resource string lookup using the syntax `{Resources:Translate KeyName}`.
|
||||
|
||||
| Member | Signature | Description |
|
||||
|--------|-----------|-------------|
|
||||
| Constructor | `TranslateExtension(string key)` | Creates an instance with the specified resource key. The key is stored in a readonly field `_key`. |
|
||||
| `ProvideValue` | `override object ProvideValue(IServiceProvider serviceProvider)` | Returns the localized string for `_key` from `StringResources.ResourceManager`. Returns `#stringnotfound#` if `_key` is null or empty. Returns `#stringnotfound# {key}` if the key is not found in resources. |
|
||||
|
||||
**Attribute:** `[MarkupExtensionReturnType(typeof(string))]`
|
||||
|
||||
---
|
||||
|
||||
### `StringResources` (class)
|
||||
**Namespace:** `RealtimeSettings.Resources`
|
||||
**Accessibility:** `internal`
|
||||
|
||||
An auto-generated strongly-typed resource class providing access to localized strings.
|
||||
|
||||
| Member | Signature | Description |
|
||||
|--------|-----------|-------------|
|
||||
| `ResourceManager` | `static ResourceManager ResourceManager { get; }` | Lazily-initialized cached `ResourceManager` instance for the `RealtimeSettings.Resources.StringResources` resource bundle. |
|
||||
| `Culture` | `static CultureInfo Culture { get; set; }` | Overrides `CurrentUICulture` for resource lookups. Marked with `EditorBrowsableState.Advanced`. |
|
||||
|
||||
**Resource String Properties (all `internal static string`):**
|
||||
|
||||
| Property | Description (from source comments) |
|
||||
|----------|-------------------------------------|
|
||||
| `DelayBetweenPolls` | "Delay between polls" |
|
||||
| `DelayBetweenPollsHelp` | Period between retrieving data from DAS (ms). Warns about data dropout vs. resource stress. |
|
||||
| `HighDelay` | "High draw delay" |
|
||||
| `HighDelayHelp` | Maximum time (ms) between UI updates when data is available. |
|
||||
| `LowDelay` | "Low draw delay" |
|
||||
| `LowDelayHelp`
|
||||
@@ -0,0 +1,36 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/SystemSettings/RealtimeSettings/View/RealtimeSettingsView.xaml.cs
|
||||
generated_at: "2026-04-17T16:15:27.065732+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "9155b463aa51aafe"
|
||||
---
|
||||
|
||||
# View
|
||||
|
||||
### Purpose
|
||||
This module provides the XAML code-behind for the ISO Settings view in the System Settings module. It serves as a passive view component in an MVVM architecture, implementing the `IISOSettingsView` interface to enable view-model binding and dependency injection. The view acts as a UI container for ISO-related configuration options within the larger DataPRO application.
|
||||
|
||||
### Public Interface
|
||||
|
||||
**`ISOSettingsView` (class)**
|
||||
- Signature: `public partial class ISOSettingsView : IISOSettingsView`
|
||||
- Constructor: `public ISOSettingsView()` - Initializes the component by calling `InitializeComponent()`, which loads the associated XAML layout.
|
||||
- Implements `IISOSettingsView` interface (defined externally in `DTS.Common.Interface`).
|
||||
|
||||
### Invariants
|
||||
- The view must be paired with a corresponding XAML file (`ISOSettingsView.xaml`) that defines the visual layout.
|
||||
- The view is a partial class, meaning its complete definition spans both the code-behind and XAML-generated code.
|
||||
|
||||
### Dependencies
|
||||
- **Depends on:**
|
||||
- `System.ComponentModel` (namespace imported but not directly used in visible code)
|
||||
- `DTS.Common.Interface` (provides `IISOSettingsView` interface)
|
||||
- **Depended on by:** Not determinable from source alone; likely consumed by a ViewModel or module registration logic.
|
||||
|
||||
### Gotchas
|
||||
- The `System.ComponentModel` using directive is imported but not visibly used in the code-behind. This may be residual or used by the XAML-generated partial class.
|
||||
- No DataContext assignment is present in the code-behind; this is likely handled externally by a ViewModel or through XAML binding.
|
||||
|
||||
---
|
||||
@@ -0,0 +1,30 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/SystemSettings/RealtimeSettings/ViewModel/RealtimeSettingsViewModel.cs
|
||||
generated_at: "2026-04-17T16:15:27.065009+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "45601297f81ff1b3"
|
||||
---
|
||||
|
||||
# ViewModel
|
||||
|
||||
### Purpose
|
||||
This module provides the ViewModel for the Realtime Settings view, managing UI state and coordinating between the view and the broader application infrastructure. It handles user notification display, busy indicator state, and exposes properties for configuring realtime sample rates and delays. The ViewModel follows the MVVM pattern using Prism and Unity for dependency injection and event aggregation.
|
||||
|
||||
### Public Interface
|
||||
|
||||
**`RealtimeSettingsViewModel` (class)**
|
||||
- Signature: `public class RealtimeSettingsViewModel : BasePropertyChanged, IRealtimeSettingsViewModel`
|
||||
- Attributes: `[Export(typeof(IRealtimeSettingsView))]`, `[PartCreationPolicy(CreationPolicy.Shared)]`
|
||||
|
||||
**Constructor:**
|
||||
- `public RealtimeSettingsViewModel(IRealtimeSettingsView view, IRegionManager regionManager, IEventAggregator eventAggregator, IUnityContainer unityContainer)`
|
||||
- Initializes the ViewModel, sets the View's DataContext to itself, creates `NotificationRequest` and `ConfirmationRequest` interaction requests, subscribes to `RaiseNotification` and `BusyIndicatorChangeNotification` events.
|
||||
|
||||
**Properties:**
|
||||
- `IRealtimeSettingsView View { get; private set; }` - The associated view instance.
|
||||
- `InteractionRequest<Notification> NotificationRequest { get; private set; }` - Used to raise notification dialogs.
|
||||
- `InteractionRequest<Confirmation> ConfirmationRequest { get; private set; }` - Used to raise confirmation dialogs.
|
||||
- `string RealtimeSampleRate { get; set; }` - Backing field: `_realtimeSampleRate`. Raises property changed for "RealtimeSampleRate".
|
||||
- `string RealtimeSampleRates { get; set; }` - Backing field: `_realtimeSampleRates`. Raises property changed for both "Real
|
||||
Reference in New Issue
Block a user