55 lines
3.2 KiB
Markdown
55 lines
3.2 KiB
Markdown
---
|
|
source_files:
|
|
- Common/DTS.Common.Serialization/Properties/AssemblyInfo.cs
|
|
- Common/DTS.Common.Serialization/Properties/Settings1.Designer.cs
|
|
generated_at: "2026-04-17T16:26:51.852900+00:00"
|
|
model: "zai-org/GLM-5-FP8"
|
|
schema_version: 1
|
|
sha256: "82b6939ea361a0a4"
|
|
---
|
|
|
|
# Properties
|
|
|
|
### Purpose
|
|
This module provides assembly-level metadata and persistent application/user settings for the `DTS.Common.Serialization` assembly. It contains standard .NET assembly information and a settings class that stores user preferences for data import/export operations, including default folder paths, time ranges, and UI color themes.
|
|
|
|
### Public Interface
|
|
|
|
**Assembly-level attributes** (in `AssemblyInfo.cs`)
|
|
- `AssemblyTitle`: "Serialization"
|
|
- `AssemblyCompany`: "DTS"
|
|
- `AssemblyVersion`: "1.06.0081"
|
|
- `AssemblyFileVersion`: "1.06.0081"
|
|
- `ComVisible`: false
|
|
- `Guid`: "af5fae89-f630-4b35-b51f-9acf65c996ba"
|
|
|
|
**`Settings1`** (internal sealed class, auto-generated, inherits `ApplicationSettingsBase`)
|
|
- `static Settings1 Default { get; }` — Returns the default synchronized instance.
|
|
- `string TDMFolder { get; set; }` — User-scoped setting; default value: `".\Data\TDM CFC1000"`.
|
|
- `double DefaultStart { get; set; }` — User-scoped setting; default value: `-500`.
|
|
- `double DefaultStop { get; set; }` — User-scoped setting; default value: `500`.
|
|
- `string TSVPOCNameLastUsed { get; set; }` — User-scoped setting; default value: `"#NOVALUE"`.
|
|
- `string TSVPOCPhoneAndEmailLastUsed { get; set; }` — User-scoped setting; default value: `"#NOVALUE"`.
|
|
- `string TSVDataTypeLastUsed { get; set; }` — User-scoped setting; default value: `"Converted"`.
|
|
- `string TSVLabNameLastUsed { get; set; }` — User-scoped setting; default value: `"#NOVALUE"`.
|
|
- `string TSVTestObjectLastUsed { get; set; }` — User-scoped setting; default value: `"#NOVALUE"`.
|
|
- `string TSVTestTypeLastUsed { get; set; }` — User-scoped setting; default value: `"#NOVALUE"`.
|
|
- `System.Drawing.Color TableHeader { get; }` — Application-scoped setting (read-only); default value: RGB(215, 225, 255).
|
|
- `System.Drawing.Color AlternatingRow { get; set; }` — User-scoped setting; default value: RGB(238, 242, 255).
|
|
|
|
### Invariants
|
|
- `TableHeader` is application-scoped and read-only at runtime.
|
|
- All TSV-related settings use `"#NOVALUE"` as a sentinel for "not yet set".
|
|
- The class is in namespace `DTS.Serialization.Properties`, which differs from the assembly name pattern `DTS.Common.Serialization`.
|
|
- `Settings1` is a singleton accessed via `Settings1.Default`.
|
|
|
|
### Dependencies
|
|
- **Depends on**: `System.Reflection`, `System.Runtime.InteropServices`, `System.Configuration`, `System.Drawing`.
|
|
- **Depended on by**: Unclear from source alone—likely consumed by serialization/import/export logic within the assembly.
|
|
|
|
### Gotchas
|
|
- The class name `Settings1` (not `Settings`) suggests there may be another settings file in the project or a naming conflict was resolved by appending a number.
|
|
- The sentinel value `"#NOVALUE"` is used for unset string settings; consumers must explicitly check for this value rather than relying on `null` or `string.Empty`.
|
|
- The `TDMFolder` default path is relative (`".\Data\TDM CFC1000"`), which depends on the current working directory at runtime.
|
|
|
|
--- |