Files
DP44/docs/ai/DataPRO/Modules/Hardware/AddEditHardware/Resources.md
2026-04-17 14:55:32 -04:00

1.1 KiB

source_files, generated_at, model, schema_version, sha256
source_files generated_at model schema_version sha256
DataPRO/Modules/Hardware/AddEditHardware/Resources/TranslateExtension.cs
DataPRO/Modules/Hardware/AddEditHardware/Resources/StringResources.Designer.cs
2026-04-17T16:13:00.122317+00:00 zai-org/GLM-5-FP8 1 209c67de8aede7be

Resources

1. Purpose

This module provides localization support for the AddEditHardware assembly. It contains a WPF markup extension for declarative XAML binding to string resources and an auto-generated strongly-typed resource class that wraps access to culture-specific strings such as UI labels, error messages, and hardware configuration names.

2. Public Interface

Class: TranslateExtension

  • Signature: public class TranslateExtension : MarkupExtension
  • Constructor: TranslateExtension(string key) — Initializes the extension with the resource key to look up.
  • Method: public override object ProvideValue(IServiceProvider serviceProvider) — Retrieves the localized string for the stored _key. Returns `#stringnotfound#