45 lines
1.8 KiB
Markdown
45 lines
1.8 KiB
Markdown
---
|
|
source_files:
|
|
- DataPRO/Modules/ISO/ExtraProperties/Model/ExtraPropertyModel.cs
|
|
generated_at: "2026-04-17T16:46:25.727645+00:00"
|
|
model: "zai-org/GLM-5-FP8"
|
|
schema_version: 1
|
|
sha256: "d34798e70a17e682"
|
|
---
|
|
|
|
# ExtraPropertyModel Documentation
|
|
|
|
## 1. Purpose
|
|
|
|
This module provides a model class `ExtraPropertyModel` for representing key-value pairs (ISO codes/user codes and their associated channel names) within the UI layer. It implements `IExtraProperty` and provides data binding support through `BasePropertyChanged`, along with a custom paste command infrastructure (`PasteCommandClass`) that handles clipboard text parsing and event publication for multi-field paste operations. This model serves as a bridge between raw property data and WPF UI components.
|
|
|
|
---
|
|
|
|
## 2. Public Interface
|
|
|
|
### `ExtraPropertyModel` Class
|
|
|
|
**Inherits from:** `DTS.Common.Base.BasePropertyChanged`
|
|
**Implements:** `DTS.Common.Interface.ISO.ExtraProperties.IExtraProperty`
|
|
|
|
#### Constructors
|
|
|
|
| Signature | Description |
|
|
|-----------|-------------|
|
|
| `ExtraPropertyModel(IExtraProperty extraProperty)` | Initializes from an existing `IExtraProperty` instance, copying `Key` and `Value`. |
|
|
| `ExtraPropertyModel()` | Parameterless constructor. |
|
|
| `ExtraPropertyModel(KeyValuePair<string, string> extraProperty)` | Initializes from a key-value pair. |
|
|
|
|
#### Properties
|
|
|
|
| Name | Type | Description |
|
|
|------|------|-------------|
|
|
| `ItemStatus` | `UIItemStatus` | Tracks UI status of the item. Defaults to `UIItemStatus.None`. |
|
|
| `Key` | `string` | The code value (ISO code or user code). |
|
|
| `Value` | `string` | The name associated with the code (ISO channel name or user channel name). |
|
|
| `PasteCommand` | `ICommand` | Command registered for paste operations. |
|
|
|
|
#### Constants
|
|
|
|
| Name | Value | Description |
|
|
|------| |