public List <ContractOfBill> ParseContracts(ContractsRawOfBill wholeContractsRaw) { List <ContractOfBill> result = new List <ContractOfBill>(); foreach (var contractRaw in wholeContractsRaw) { //todo //new task for every parsing ContractOfBill contract = new ContractOfBill(contractRaw.SplitWholeContractToSeparatedMainParts(parsers)); result.Add(contract); } Info?.Invoke(this, new TextEventArgs("Разделенных контрактов: " + result.Count.ToString())); return(result); }
public ContractOfBill(ContractOfBill contract) { Header = contract?.Header; ServicesOfContract = contract?.ServicesOfContract; DetalizationOfContract = contract?.DetalizationOfContract; }