абстрактный класс для сохранения курсов приема в ворд сделала

This commit is contained in:
Елена Бакальская 2024-05-28 11:23:31 +04:00
parent 1ab91e7b63
commit e8a9d126e4

View File

@ -29,14 +29,15 @@ namespace PolyclinicBusinessLogic.OfficePackage
{ {
CreateParagraph(new WordParagraph CreateParagraph(new WordParagraph
{ {
Texts = new List<(string, WordTextProperties)> { Texts = new List<(string, WordTextProperties)>
(sushi.SushiName, new WordTextProperties { Bold = true, Size = "24", }), {
(" цена: " + sushi.Price.ToString() + " рублей", new WordTextProperties { Size = "24", }) ("Количество пилюль в день: " + course.PillsPerDay.ToString() + " единиц", new WordTextProperties{ Size = "16"}),
("Количество дней приёма: " + course.DaysCount.ToString() + " дней", new WordTextProperties{ Size = "16"}),
}, },
TextProperties = new WordTextProperties TextProperties = new WordTextProperties
{ {
Size = "24", Size = "16",
JustificationType = WordJustificationType.Both JustificationType = WordJustificationType.Both
} }
}); });