3.9 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | ||
|---|---|---|---|---|---|---|
|
2026-04-16T11:11:08.452052+00:00 | zai-org/GLM-5-FP8 | 1 | e0305153f9f5be9f |
Documentation: DTS.Viewer.GraphList Views
1. Purpose
This module contains WPF code-behind files for two graph-related views in the DTS Viewer application: ExportGraphMainView and GraphMainView. Both views implement corresponding interfaces from DTS.Common.Interface and provide interaction logic for their respective XAML counterparts. Their primary runtime behavior is to intercept and suppress the ApplicationCommands.Undo command, preventing undo operations from propagating further in the command routing system.
2. Public Interface
ExportGraphMainView (class)
Implements: IExportGraphMainView
| Member | Signature | Description |
|---|---|---|
| Constructor | public ExportGraphMainView() |
Initializes the XAML component via InitializeComponent() and registers a CommandBinding for ApplicationCommands.Undo. Both the Execute and CanExecute handlers set e.Handled = true without performing any other action. |
GraphMainView (class)
Implements: IGraphMainView
| Member | Signature | Description |
|---|---|---|
| Constructor | public GraphMainView() |
Initializes the XAML component via InitializeComponent() and registers a CommandBinding for ApplicationCommands.Undo. Both the Execute and CanExecute handlers set e.Handled = true without performing any other action. |
Note: The GraphMainView class contains commented-out code referencing:
root.IsChecked(presumably a UI element)TvTestChannels.Focus()(a method call)- A commented-out method
SetTvFocus()
3. Invariants
-
Partial Class Structure: Both
ExportGraphMainViewandGraphMainVieware declared aspartialclasses, implying the existence of XAML-generated counterparts that must be present at compile time. -
Undo Command Suppression: Both views guarantee that
ApplicationCommands.Undowill always be marked as handled (e.Handled = true) in both Execute and CanExecute handlers, effectively disabling undo functionality within these views. -
Interface Implementation: Each view must implement its respective interface (
IExportGraphMainVieworIGraphMainView) fromDTS.Common.Interface.
4. Dependencies
This module depends on:
System.Windows.Input— ProvidesCommandBindingandApplicationCommandsDTS.Common.Interface— ProvidesIExportGraphMainViewandIGraphMainViewinterfaces
What depends on this module:
- Not determinable from source alone. The views are likely instantiated by a view factory, dependency injection container, or referenced by view models in the
DTS.Viewer.GraphListmodule or a higher-level orchestration layer.
5. Gotchas
-
No-op Undo Handlers: Both views register command bindings for
ApplicationCommands.Undothat do nothing except mark the event as handled. This effectively disables undo functionality without providing alternative behavior. The intent is unclear from source alone—this may be intentional suppression or placeholder code. -
Commented-Out Code in
GraphMainView: The presence of commented-out references toroot.IsChecked,TvTestChannels.Focus(), and theSetTvFocus()method suggests incomplete or removed functionality. The original purpose of these members cannot be determined from source alone. -
Namespace Suppression: Both files include
// ReSharper disable CheckNamespace, indicating the namespaceDTS.Viewer.GraphListmay not match the folder structure (DTS.Viewer.Modules/DTS.Viewer.GraphList/View/). This could cause confusion when navigating the codebase.