init
This commit is contained in:
39
docs/ai/Common/DTS.Common.Property/Model.md
Normal file
39
docs/ai/Common/DTS.Common.Property/Model.md
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common.Property/Model/GraphPropertyObject.cs
|
||||
generated_at: "2026-04-17T16:10:18.442473+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "2d42a403a94ff001"
|
||||
---
|
||||
|
||||
# Model
|
||||
|
||||
### Purpose
|
||||
This module provides the abstract `BaseModel<TModel>` class, which serves as a foundational base class for creating model wrapper objects in the DTS system. It establishes a pattern for wrapping domain model objects with additional infrastructure (property change notification and persistence tracking) while maintaining type safety through generics.
|
||||
|
||||
### Public Interface
|
||||
|
||||
- **`BaseModel<TModel>`** (abstract class)
|
||||
- Inherits from: `BasePropertyChanged`, implements `IBaseModel`
|
||||
- Generic constraint: `TModel : class`
|
||||
|
||||
- **`TModel Model { get; set; }`** - Gets or sets the wrapped model object.
|
||||
|
||||
- **`bool IsSaved { get; }`** - Gets a value indicating whether the model has been saved. Has a private setter; no public method exists to set this to true.
|
||||
|
||||
- **`BaseModel()`** - Public parameterless constructor. Creates a new instance of the base class.
|
||||
|
||||
### Invariants
|
||||
- `TModel` must always be a reference type (class constraint).
|
||||
- `IsSaved` is initialized to `false` (default bool value) and can only be modified within the class itself.
|
||||
|
||||
### Dependencies
|
||||
- **Depends on**: `BasePropertyChanged` (base class providing property change notification), `IBaseModel` (interface contract).
|
||||
- **Depended on by**: Unknown from this source alone, but designed as a base class for model wrappers throughout the system.
|
||||
|
||||
### Gotchas
|
||||
- The `IsSaved` property has a private setter but no method in this class ever sets it to `true`. Subclasses or external code cannot modify it, suggesting either incomplete implementation or that reflection/serialization is expected to set it.
|
||||
- The class is abstract but has a public constructor (suppressed ReSharper warning indicates this is intentional, possibly for serialization or reflection scenarios).
|
||||
|
||||
---
|
||||
16
docs/ai/Common/DTS.Common.Property/Properties.md
Normal file
16
docs/ai/Common/DTS.Common.Property/Properties.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common.Property/Properties/AssemblyInfo.cs
|
||||
generated_at: "2026-04-17T16:43:32.070182+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "3af4d5be9e115cb2"
|
||||
---
|
||||
|
||||
# Documentation: DTS.Common.Property Assembly Configuration
|
||||
|
||||
## 1. Purpose
|
||||
This file provides assembly-level metadata and configuration for the `DTS.Common.Property` project (compiled as a .NET assembly). It defines identity attributes, version information, COM visibility settings, and copyright details that are embedded into the compiled binary. This module exists to establish the assembly's identity within the .NET runtime environment and control its exposure to COM components.
|
||||
|
||||
## 2. Public Interface
|
||||
This file does not
|
||||
51
docs/ai/Common/DTS.Common.Property/View.md
Normal file
51
docs/ai/Common/DTS.Common.Property/View.md
Normal file
@@ -0,0 +1,51 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common.Property/View/PropertyView.xaml.cs
|
||||
generated_at: "2026-04-17T16:43:29.037066+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "5bc9e36e147fb721"
|
||||
---
|
||||
|
||||
# Documentation: PropertyView
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
`PropertyView` is a WPF view component that provides interaction logic for a property display interface. It exists as part of the `DTS.Common.Property` namespace and implements the `IPropertyView` interface, suggesting it serves as a standard view for displaying or editing properties within the DTS system. This is a code-behind file paired with a XAML view.
|
||||
|
||||
## 2. Public Interface
|
||||
|
||||
### `PropertyView` (class)
|
||||
**Signature:**
|
||||
```csharp
|
||||
public partial class PropertyView : IPropertyView
|
||||
```
|
||||
|
||||
**Constructor:**
|
||||
```csharp
|
||||
public PropertyView()
|
||||
```
|
||||
Initializes a new instance of the `PropertyView` class and calls `InitializeComponent()` to load the associated XAML layout.
|
||||
|
||||
**Implemented Interfaces:**
|
||||
- `IPropertyView` (from `DTS.Common.Interface`)
|
||||
|
||||
## 3. Invariants
|
||||
|
||||
- The class is `partial`, indicating it must be paired with a corresponding XAML file (`PropertyView.xaml`) that defines the visual layout.
|
||||
- `InitializeComponent()` is invoked exactly once during construction, which is the standard WPF pattern for loading XAML-defined UI elements.
|
||||
- The class must fulfill any contract defined by `IPropertyView`, though the specific members of that interface are not visible in this source file.
|
||||
|
||||
## 4. Dependencies
|
||||
|
||||
**This module depends on:**
|
||||
- `DTS.Common.Interface` — specifically the `IPropertyView` interface
|
||||
- WPF infrastructure (implicit via `InitializeComponent()` and partial class pattern)
|
||||
- Associated XAML file `PropertyView.xaml` (not provided)
|
||||
|
||||
**What depends on this module:**
|
||||
- Cannot be determined from this source file alone.
|
||||
|
||||
## 5. Gotchas
|
||||
|
||||
- **Documentation mismatch:** The XML documentation comment references `GraphPropertyView.xaml`, but the class is named `PropertyView`. This discrepancy suggests either a copy-paste error from another view or a historical rename that was not updated in the comments. The actual XAML file is likely `PropertyView.xaml` based on standard WPF naming conventions.
|
||||
29
docs/ai/Common/DTS.Common.Property/ViewModel.md
Normal file
29
docs/ai/Common/DTS.Common.Property/ViewModel.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
source_files:
|
||||
- Common/DTS.Common.Property/ViewModel/PropertyViewModel.cs
|
||||
generated_at: "2026-04-17T16:10:18.441707+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "c44efa392e4e3d7a"
|
||||
---
|
||||
|
||||
# ViewModel
|
||||
|
||||
### Purpose
|
||||
This module provides `PropertyViewModel`, a view model for displaying and managing graph property views. It integrates with the Prism framework for event aggregation, region management, and interaction requests (notifications/confirmations). It acts as a bridge between property views and the broader application infrastructure.
|
||||
|
||||
### Public Interface
|
||||
|
||||
- **`PropertyViewModel`** (class)
|
||||
- Inherits from: `BaseViewModel<IGraphPropertyViewModel>`, implements `IPropertyViewModel`
|
||||
|
||||
**Constructor:**
|
||||
- **`PropertyViewModel(IPropertyView view, IRegionManager regionManager, IEventAggregator eventAggregator, IUnityContainer unityContainer)`** - Initializes the view model, sets up the view's DataContext, creates interaction requests, and subscribes to `RaiseNotification` events.
|
||||
|
||||
**Properties:**
|
||||
- **`IPropertyView View { get; }`** - Gets the associated view instance.
|
||||
- **`InteractionRequest<Notification> NotificationRequest { get; }`** - Interaction request for displaying notifications.
|
||||
- **`InteractionRequest<Confirmation> ConfirmationRequest { get; }`** - Interaction request for displaying confirmations.
|
||||
- **`object Properties { get; set; }`** - Gets or sets the properties object. Raises `PropertyChanged` event when set.
|
||||
- **`string HeaderInfo { get; }`** - Returns the constant string "Graph Property".
|
||||
- **`bool IsBusy { get; set; }`** - Throws `NotImplementedException`
|
||||
Reference in New Issue
Block a user