41 lines
2.0 KiB
Markdown
41 lines
2.0 KiB
Markdown
|
|
---
|
||
|
|
source_files:
|
||
|
|
- DataPRO/Modules/SystemSettings/ISOSettings/ViewModel/ISOSettingsViewModel.cs
|
||
|
|
generated_at: "2026-04-17T16:15:04.735316+00:00"
|
||
|
|
model: "zai-org/GLM-5-FP8"
|
||
|
|
schema_version: 1
|
||
|
|
sha256: "8db3a8520eb6d4a3"
|
||
|
|
---
|
||
|
|
|
||
|
|
# ViewModel
|
||
|
|
|
||
|
|
### Purpose
|
||
|
|
This module provides the ViewModel for ISO Settings management, implementing the MVVM pattern with Prism framework support. It coordinates between the view, model, and application infrastructure (event aggregation, region management, dependency injection) to handle ISO code configuration, user notifications, and data persistence.
|
||
|
|
|
||
|
|
### Public Interface
|
||
|
|
|
||
|
|
**`ISOSettingsViewModel`** (class) - ViewModel for ISO settings management
|
||
|
|
|
||
|
|
- Constructor: `public ISOSettingsViewModel(IISOSettingsView view, IRegionManager regionManager, IEventAggregator eventAggregator, IUnityContainer unityContainer)`
|
||
|
|
|
||
|
|
**Properties:**
|
||
|
|
- `View` (`IISOSettingsView`) - Gets/sets the associated view
|
||
|
|
- `Model` (`IISOSettingsModel`) - Gets/sets the data model
|
||
|
|
- `NotificationRequest` (`InteractionRequest<Notification>`) - Request object for showing notifications
|
||
|
|
- `ConfirmationRequest` (`InteractionRequest<Confirmation>`) - Request object for showing confirmations
|
||
|
|
- `ISOData` (`IISOSettingsData`) - Gets/sets the ISO settings data
|
||
|
|
- `IsDirty` (`bool`) - Indicates if data has unsaved changes (private setter)
|
||
|
|
- `IsBusy` (`bool`) - Indicates busy state for UI indicators
|
||
|
|
- `IsMenuIncluded` (`bool`) - Indicates if menu is included
|
||
|
|
- `IsNavigationIncluded` (`bool`) - Indicates if navigation is included
|
||
|
|
- `HeaderInfo` (`string`) - Returns "MainRegion" (read-only)
|
||
|
|
|
||
|
|
**Methods:**
|
||
|
|
- `void Cleanup()` - Empty implementation
|
||
|
|
- `Task CleanupAsync()` - Returns `Task.CompletedTask`
|
||
|
|
- `void Initialize()` - Empty implementation
|
||
|
|
- `void Initialize(object parameter)` - Empty implementation
|
||
|
|
- `void Initialize(object parameter, object model)` - Empty implementation
|
||
|
|
- `Task InitializeAsync()` - Returns `Task.CompletedTask`
|
||
|
|
- `Task InitializeAsync(object parameter)` - Returns `Task.CompletedTask`
|
||
|
|
- `void
|