task 1 complete task2 task2 change test data initialization task3 task2 fix fixes add percents minor fixes
25 lines
691 B
C#
25 lines
691 B
C#
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("Все поля должны быть заполнены.");
|
||
}
|
||
}
|
||
}
|
||
}
|