Zakharov_Rostislav d99c4b78a0 feat(lab2): do lab2
task 1 complete

task2

task2 change test data initialization

task3

task2 fix

fixes

add percents

minor fixes
2024-10-11 15:38:17 +04:00

25 lines
691 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using ComponentLibrary1.office_package.HelperModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ComponentLibrary1.pdf_image
{
public class PdfImageInfo : IPdfInfo
{
public string FileName { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public List<byte[]> Images { get; set; } = new List<byte[]>();
public void CheckFields()
{
if (string.IsNullOrWhiteSpace(FileName) || string.IsNullOrWhiteSpace(Title) || Images == null || Images.Count == 0)
{
throw new ArgumentException("Все поля должны быть заполнены.");
}
}
}
}