diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2022-01-28 09:08:35 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2022-01-28 09:08:35 +0300 |
commit | 722de64dadd29744972ec5c5eca228f7a2e326e5 (patch) | |
tree | a4039c747ad7674355c1837250daa9376fd084af /src/PriceListTools | |
parent | 71fcd9ee866cb3b1a221dbd691d78ff4b26f23e4 (diff) |
Add convert Tool
Diffstat (limited to 'src/PriceListTools')
-rw-r--r-- | src/PriceListTools/PriceListTool.cs | 21 |
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; |