RhSolutions-AddIn/src/PriceListTools/MergeTool.cs

23 lines
523 B
C#
Raw Normal View History

2022-01-27 17:34:03 +03:00
using System.Collections.Generic;
namespace RehauSku.PriceListTools
2021-12-24 16:22:03 +03:00
{
2022-01-27 10:22:30 +03:00
internal class MergeTool : PriceListTool
2021-12-24 16:22:03 +03:00
{
2022-01-27 17:34:03 +03:00
public List<Source> SourceFiles;
public void FillTarget()
{
2022-01-27 20:43:19 +03:00
foreach (Source source in SourceFiles)
{
foreach (var kvp in source.PositionAmount)
FillColumnsWithDictionary(kvp, TargetFile.amountCell.Column);
2022-01-27 20:43:19 +03:00
}
2022-01-27 17:34:03 +03:00
FilterByAmount();
2021-12-24 16:22:03 +03:00
2022-01-27 17:34:03 +03:00
Forms.Dialog.SaveWorkbookAs();
}
2021-12-24 16:22:03 +03:00
}
}