aboutsummaryrefslogtreecommitdiff
path: root/src/PriceListTools
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-01-28 09:08:35 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-01-28 09:08:35 +0300
commit722de64dadd29744972ec5c5eca228f7a2e326e5 (patch)
treea4039c747ad7674355c1837250daa9376fd084af /src/PriceListTools
parent71fcd9ee866cb3b1a221dbd691d78ff4b26f23e4 (diff)
Add convert Tool
Diffstat (limited to 'src/PriceListTools')
-rw-r--r--src/PriceListTools/PriceListTool.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/PriceListTools/PriceListTool.cs b/src/PriceListTools/PriceListTool.cs
index cbae4d9..918b6de 100644
--- a/src/PriceListTools/PriceListTool.cs
+++ b/src/PriceListTools/PriceListTool.cs
@@ -6,6 +6,27 @@ using System.Linq;
namespace RehauSku.PriceListTools
{
+ internal class ConvertTool : PriceListTool
+ {
+ private Source Current;
+
+ public void GetCurrent()
+ {
+ Current = new Source(ExcelApp.ActiveWorkbook);
+ }
+
+ public void FillTarget()
+ {
+ ExcelApp.ScreenUpdating = false;
+ FillColumn(Current.SkuAmount, TargetFile.amountCell.Column);
+ FilterByAmount();
+ ExcelApp.ScreenUpdating = true;
+
+ Forms.Dialog.SaveWorkbookAs();
+ }
+ }
+
+
internal abstract class PriceListTool
{
protected private Application ExcelApp = (Application)ExcelDnaUtil.Application;