RhSolutions-AddIn/src/PriceListTools/MergeTool.cs

21 lines
488 B
C#
Raw Normal View History

2022-01-27 17:34:03 +03:00
using System.Collections.Generic;
using System.Linq;
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()
{
ExcelApp.ScreenUpdating = false;
FillAmountColumn(SourceFiles.Select(x => x.SkuAmount).ToArray());
FilterByAmount();
ExcelApp.ScreenUpdating = true;
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
}
}