This commit is contained in:
Danil Markov 2023-04-21 14:32:11 +04:00
parent cb8fb410b3
commit 8d0be1216c
5 changed files with 383 additions and 381 deletions

View File

@ -34,8 +34,11 @@ namespace LawFirmFileImplement
{
if (File.Exists(filename))
{
return
XDocument.Load(filename)?.Root?.Elements(xmlNodeName)?.Select(selectFunction)?.ToList();
return XDocument.Load(filename)?.
Root?.
Elements(xmlNodeName)?.
Select(selectFunction)?.
ToList();
}
return new List<T>();
}

View File

@ -11,8 +11,7 @@ namespace LawFirmFileImplement.Models
public string DocumentName { get; private set; } = string.Empty;
public double Price { get; private set; }
public Dictionary<int, int> Blanks { get; private set; } = new();
private Dictionary<int, (IBlankModel, int)>? _documentBlanks =
null;
private Dictionary<int, (IBlankModel, int)>? _documentBlanks = null;
public Dictionary<int, (IBlankModel, int)> DocumentBlanks
{
get