From 6dfcc1b2be1984a871db57568d08f63c03f48645 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 8 Oct 2026 11:34:05 +0200 Subject: [PATCH] Update property accessor and resource management Modified the `ByteData` property in `DocumentDto.cs` to use a `set` accessor instead of `init`, enabling updates after initialization. Updated resource manager references in `frmEnvelopeMainData.vb` to use `CommonServices.My.Resources.Model.ResourceManager` for localized string retrieval. --- EnvelopeGenerator.Application/Common/Dto/DocumentDto.cs | 2 +- EnvelopeGenerator.Form/frmEnvelopeMainData.vb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EnvelopeGenerator.Application/Common/Dto/DocumentDto.cs b/EnvelopeGenerator.Application/Common/Dto/DocumentDto.cs index e8bb7c02..75c50e3c 100644 --- a/EnvelopeGenerator.Application/Common/Dto/DocumentDto.cs +++ b/EnvelopeGenerator.Application/Common/Dto/DocumentDto.cs @@ -23,5 +23,5 @@ public record DocumentDto : DocumentDetailsDto /// /// Gets or sets the binary data of the document, if available. /// - public byte[]? ByteData { get; init; } + public byte[]? ByteData { get; set; } } diff --git a/EnvelopeGenerator.Form/frmEnvelopeMainData.vb b/EnvelopeGenerator.Form/frmEnvelopeMainData.vb index 43593faa..bd15ae8e 100644 --- a/EnvelopeGenerator.Form/frmEnvelopeMainData.vb +++ b/EnvelopeGenerator.Form/frmEnvelopeMainData.vb @@ -105,10 +105,10 @@ Public Class frmEnvelopeMainData End If End Sub Private Function TranslateCertificationType(pType As CertificationType) As String - Return Resources.Model.ResourceManager.GetString(pType.ToString()) + Return CommonServices.My.Resources.Model.ResourceManager.GetString(pType.ToString()) End Function Private Function TranslateFinalEmailType(pType As FinalEmailType) As String - Return Resources.Model.ResourceManager.GetString(pType.ToString()) + Return CommonServices.My.Resources.Model.ResourceManager.GetString(pType.ToString()) End Function Private Sub btOK_Click(sender As Object, e As EventArgs) Handles btOK.Click