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.
28 lines
729 B
C#
28 lines
729 B
C#
namespace EnvelopeGenerator.Application.Common.Dto;
|
|
|
|
/// <summary>
|
|
/// Data Transfer Object representing a document within an envelope, including optional binary data and form elements.
|
|
/// </summary>
|
|
public record DocumentDto : DocumentDetailsDto
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public DocumentDto() { }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="byteData"></param>
|
|
/// <param name="details"></param>
|
|
public DocumentDto(byte[] byteData, DocumentDetailsDto details) : base(details)
|
|
{
|
|
ByteData = byteData;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the binary data of the document, if available.
|
|
/// </summary>
|
|
public byte[]? ByteData { get; set; }
|
|
}
|